Skip to main content

joined

Function joined 

Source
pub async fn joined<T: Send + 'static>(
    operation: &'static str,
    task: JoinHandle<Result<T, Bug>>,
) -> Result<T, TaskFailed>
Expand description

Wait for a task whose work runs under caught, as tokio::spawn(caught(operation, work)) starts it. Its panic comes back as TaskFailed::Panicked, naming where it began; the runtime cancelling it, as Shutdown.