diff --git a/examples/demo.rs b/examples/demo.rs index 61752fc..6348ab6 100644 --- a/examples/demo.rs +++ b/examples/demo.rs @@ -51,7 +51,7 @@ fn main() { while runner.any_woken() { println!("Ticking"); - runner.tick(&waker); + runner.tick(waker.clone()); } // This reclaims the first 3 tasks @@ -62,7 +62,7 @@ fn main() { spawn(&executor); while runner.any_woken() { println!("Ticking"); - runner.tick(&waker); + runner.tick(waker.clone()); } // This re-uses the 3 tasks created prior @@ -74,7 +74,7 @@ fn main() { while runner.any_woken() { println!("Ticking"); - runner.tick(&waker); + runner.tick(waker.clone()); // This reclaims tasks as their futures resolve on each tick println!("Pruning");