Skip to main content

atomically_async

Function atomically_async 

Source
pub async fn atomically_async<T, F: Future<Output = T>>(
    f: impl FnOnce() -> F,
) -> T
Expand description

Executes the given async function as an atomic operation.

In case of a failure, the whole operation will be re-executed during retry.