Skip to main content

spawn_delay

Function spawn_delay 

Source
pub fn spawn_delay<F>(duration: Duration, future: F) -> JoinHandle<F::Output> 
where F: Future + Send + 'static, F::Output: Send + 'static,
Expand description

Spawns a task after waiting for a duration before the task is polled.