You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With futures it would be nice if we had an api to make it easy to start tasks when futures are ready.
// return a futurelet foo = task(|_| 0u32).start(sched);// start this task when the task is done// this creates a barrier on all the futures and enqueues the task// when the future list is readylet bar = on_complete!(sched, |sched, foo| {
println!("{}", something);
});//ect ect ectlet baz = on_complete!(sched, |sched, bar| {});
We could have a
Future
trait for the following things:std::sync::Future
, and our custom futuresThe text was updated successfully, but these errors were encountered: