pub async fn run_with_error_reporting<F, T, E>(future: F) -> Result<T, E>where F: Future<Output = Result<T, E>> + Send + 'static, T: Send + 'static, E: Error + Send + Sync + 'static,
Run an asynchronous task with automatic error reporting.
future
The result of the future.