Skip to main content

spawn_abortable_delay

Function spawn_abortable_delay 

Source
pub fn spawn_abortable_delay<F>(
    duration: Duration,
    future: F,
) -> AbortableJoinHandle<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.