Skip to main content

checked_store

Function checked_store 

Source
pub fn checked_store<T: 'static>(
    engine: &Engine,
    data: T,
    fuel: u64,
    time: Duration,
    checkpoint: impl FnMut() -> Result<()> + Send + Sync + 'static,
) -> Store<T>
Expand description

limited_store that also runs checkpoint at every epoch tick (a task’s stop and pause), failing the run when it fails