Function smolscale::spawn [−][src]
pub fn spawn<T: Send + 'static>(
future: impl Future<Output = T> + Send + 'static
) -> Task<T>
Expand description
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.