Skip to main content

snapshot_expired

Function snapshot_expired 

Source
pub async fn snapshot_expired(
    cancel: &CancellationToken,
    timeout: Duration,
) -> bool
Expand description

Returns whether the snapshot deadline expires before cancellation.

A zero timeout disables monitoring. Adapters cancel the token when accepting a snapshot or retiring its subscription, so obsolete waits cannot start replacement work.