catch_context

Function catch_context 

Source
pub async fn catch_context<F>(context: &'static str, future: F)
where F: Future<Output = Result<()>>,
Expand description

Catch an error from an asynchronous function, passing it to the error logger with a static context.

See anyhow::Context::context