Trait ckb_spawn::Spawn [−][src]
pub trait Spawn {
fn spawn_task<F>(&self, task: F)
where
F: Future<Output = ()> + Send + 'static;
}Expand description
Spawn abstract async runtime, spawns a future onto the runtime
Required methods
fn spawn_task<F>(&self, task: F) where
F: Future<Output = ()> + Send + 'static,
fn spawn_task<F>(&self, task: F) where
F: Future<Output = ()> + Send + 'static,
This spawns the given future onto the runtime’s executor