Graphorin API reference v0.15.1
Graphorin API reference / @graphorin/core / / Dispatch
Class: Dispatch<TArgs>
Defined in: packages/core/src/channels/dispatch.ts:12
Stable
Workflow dynamic-task primitive. A node returns one or more Dispatch(nodeName, args) values to schedule additional tasks in the next execution step.
The class is intentionally tiny - the engine inspects only the public nodeName and args fields. The shape is Graphorin's own design (the name Dispatch is part of the public API).
Type Parameters
| Type Parameter | Default type |
|---|---|
TArgs | unknown |
Constructors
Constructor
ts
new Dispatch<TArgs>(nodeName, args): Dispatch<TArgs>;Defined in: packages/core/src/channels/dispatch.ts:24
Parameters
| Parameter | Type |
|---|---|
nodeName | string |
args | TArgs |
Returns
Dispatch<TArgs>