Skip to main content

task_with_timeout_named

Function task_with_timeout_named 

Source
pub fn task_with_timeout_named<M, F>(
    name: impl Into<String>,
    timeout: Duration,
    f: F,
    on_timeout: M,
) -> Cmd<M>
where M: Send + 'static, F: FnOnce(CancellationToken) -> M + Send + 'static,
Expand description

Create a Cmd::Task with a named spec and cooperative timeout.