Skip to main content

suspend_on_cancellable

Function suspend_on_cancellable 

Source
pub fn suspend_on_cancellable<F: Future>(future: F) -> F::Output
Expand description

Like suspend_on, but drops this future in place if the driver cancels the coroutine. The future’s destructor runs on the executor’s stack.