pub fn async_error<E: Error + Send + 'static, T>( e: E, ) -> BoxFuture<'static, Result<T, E>>
Wraps the given error in a boxed future.