pub trait Spawnable {
type Output;
// Required method
fn into_task(self, scope: ScopeHandle) -> AtomicFutureHandle<'static>;
}
Expand description
Trait for things that can be spawned on to a scope. There is a blanket implementation below for futures.
Required Associated Types§
Required Methods§
Sourcefn into_task(self, scope: ScopeHandle) -> AtomicFutureHandle<'static>
fn into_task(self, scope: ScopeHandle) -> AtomicFutureHandle<'static>
Converts to a task that can be spawned directly.