Skip to main content

DrbComputations

Type Alias DrbComputations 

Source
type DrbComputations = Arc<Mutex<HashMap<EpochNumber, CancellationToken>>>;
Expand description

The in-flight DRB computations, each with the token that stops it. An entry is the claim on its epoch: one computation runs per epoch, and the next may start only once the entry is gone.

When an external source supplies the DRB result for epoch (e.g. a decided leaf carrying next_drb_result), supply_drb fires the token so the local computation can stop early instead of grinding to completion.

Aliased Typeยง

struct DrbComputations { /* private fields */ }