join

Function join 

Source
pub fn join<T>(join_handle: JoinHandle<Result<T>>) -> Result<T, Error>
Expand description

Joins a thread handle and returns the result, handling join errors as eyre::Error. Awaits a JoinHandle and unwraps the inner Result.

ยงErrors

  • The task panicked.
  • The task returned an error.