cubecl_common::future

Function catch_unwind

Source
pub async fn catch_unwind<O>(
    future: impl Future<Output = O>,
) -> Result<O, Box<dyn Any + Send>>
Expand description

Tries to catch panics within the future.