Function linera_base::task::spawn
source ยท pub fn spawn<F: Future<Output: Send> + Send + 'static>(
future: F,
) -> NonBlockingFuture<F::Output>
Expand description
Spawns a new task, potentially on the current thread.
pub fn spawn<F: Future<Output: Send> + Send + 'static>(
future: F,
) -> NonBlockingFuture<F::Output>
Spawns a new task, potentially on the current thread.