pub async fn catch_unwind<O>( future: impl Future<Output = O>, ) -> Result<O, Box<dyn Any + Send>>
Tries to catch panics within the future.