Skip to main content

task_result

Function task_result 

Source
async fn task_result<T>(task: JoinHandle<Result<T>>) -> Result<T, Error>
Expand description

The result of a call which runs in a task of its own. A task which panicked fails the call like an error, but only where panics unwind, like in the tests: release builds abort on a panic.