Function ksched::task::spawn [−][src]
pub fn spawn<T>(future: T) -> Result<(), AllocError> where
T: Future<Output = ()> + Send + 'static,
Expand description
Spawn a task to the default executor.
Note that it doesn’t mean to execute the task, just spawn it.
Examples
use ksched::task; task::spawn(async { println!("hello, world"); }).expect("oom");