Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/core / / PauseResumeScope
Interface: PauseResumeScope
Defined in: packages/core/src/channels/pause.ts:46
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 (pause ↔ resume) without forcing every node body to be re-architected as a state machine.
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
consumed | public | boolean | packages/core/src/channels/pause.ts:48 |
value | readonly | unknown | packages/core/src/channels/pause.ts:47 |