Skip to main content

catch

Function catch 

Source
pub async fn catch<F: Future>(future: F) -> Result<F::Output, String>
Expand description

Run a future, converting a panic into an Err.