Skip to main content

spawn

Function spawn 

Source
pub fn spawn(task: impl Future<Output = ()> + 'static)
Expand description

Run task on this thread: polled once now, then again each time its waker fires and run_pending (or a block_on) runs.