Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/core / / PauseResumeScope

Interface: PauseResumeScope

Defined in: packages/core/src/channels/pause.ts:128

Internal

Resume-injection scope set by the workflow runtime around the second (and later) invocations of a paused node body. When the scope is present, pause(...) consults it to decide whether to throw a fresh PauseSignal or return the injected value the runtime supplied via Workflow.resume(threadId, new Directive({ resume })).

This is the storage mechanism that gives pause() its symmetric pair semantics (pauseresume) without forcing every node body to be re-architected as a state machine.

Properties

PropertyModifierTypeDescriptionDefined in
cursorpublicnumber-packages/core/src/channels/pause.ts:136
meta?readonlyreadonly ( | PauseIdentity | null | undefined)[]W-120: per-value identity of the pause each value answered. Absent (legacy checkpoints) or null/empty entries skip the check.packages/core/src/channels/pause.ts:135
valuesreadonlyreadonly unknown[]Ordered resume values replayed to successive pause() calls (WF-2).packages/core/src/channels/pause.ts:130