Skip to main content

with_checkpoint_async

Function with_checkpoint_async 

Source
pub async fn with_checkpoint_async<T, E, F: Future<Output = Result<T, E>>>(
    f: impl FnOnce(&Checkpoint) -> F,
) -> T
Expand description

Creates a checkpoint, runs the given async function, and reverts on error.