Skip to main content

atomically_result_async

Function atomically_result_async 

Source
pub async fn atomically_result_async<T, E, F>(
    f: impl FnOnce() -> F,
) -> Result<T, E>
where E: Display, F: Future<Output = Result<T, E>>,
Expand description

Async version of atomically_result.