Skip to content

Documentation / @etherfold/core / retryCanAdvance

Function: retryCanAdvance() ​

retryCanAdvance(stopped): boolean

Defined in: packages/core/src/generation/rebuild.ts:375

Whether calling more() again can make progress, or whether this needs a human.

The one derivation every scheduler would otherwise write for itself, and get subtly wrong: budget means more is waiting right now, nothing-stored and stream-consumed mean the writer may add more later, and the other three recur identically on every call until something outside this loop changes. A host that loops on complete === false alone spins at full rate on all three, for ever, with only a log line to say why -- which is the defect ADR-0070 removes.

Parameters ​

stopped ​

RebuildStop

Returns ​

boolean