Function run_with_error_reporting

Source
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,
Expand description

Run an asynchronous task with automatic error reporting.

§Arguments

  • future - The future to run.

§Returns

The result of the future.