pub fn spawn<F>(future: F) -> JoinHandle<F::Output> ⓘwhere
F: Future + 'static,
F::Output: 'static,
Expand description
Spawns a new asynchronous task, returning a JoinHandle
for it.
pub fn spawn<F>(future: F) -> JoinHandle<F::Output> ⓘwhere
F: Future + 'static,
F::Output: 'static,
Spawns a new asynchronous task, returning a JoinHandle
for it.