Skip to main content

until_stopped

Function until_stopped 

Source
pub async fn until_stopped<T>(
    work: impl Future<Output = T>,
    stop: Receiver<u32>,
) -> Option<T>
Expand description

work’s output, or None once a shutdown is asked for.