[−][src]Function smolscale::spawn
pub fn spawn<T: Send + 'static>(
future: impl Future<Output = T> + Send + 'static
) -> Task<T>
Spawns a task onto the lazily-initialized global executor.
The task can block or run CPU-intensive code if needed --- it will not block other tasks.