some cleanup

This commit is contained in:
dignifiedquire
2020-03-18 02:23:22 +01:00
parent 563b550f08
commit 94c6a01420
3 changed files with 117 additions and 125 deletions

View File

@@ -128,7 +128,12 @@ impl Context {
}
pub async fn run(&self) {
self.inner.scheduler.write().await.run(self.clone()).await
let ctx = self.clone();
println!("RUN LOCK START");
let l = &mut *self.inner.scheduler.write().await;
println!("RUN LOCK AQ");
l.run(ctx);
println!("RUN LOCK DONE");
}
pub async fn stop(&self) {