Skip to main content

log_panic

Function log_panic 

Source
pub async fn log_panic<F: Future<Output = ()>>(name: &'static str, f: F)
Expand description

Run a future and log if it panics, instead of silently swallowing the panic. Use this to wrap fire-and-forget spawned tasks.