Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/workflow / / Dispatch

Class: Dispatch<TArgs>

Defined in: packages/core/dist/channels/dispatch.d.ts:13

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).

Stable

Type Parameters

Type ParameterDefault type
TArgsunknown

Constructors

Constructor

ts
new Dispatch<TArgs>(nodeName, args): Dispatch<TArgs>;

Defined in: packages/core/dist/channels/dispatch.d.ts:16

Parameters

ParameterType
nodeNamestring
argsTArgs

Returns

Dispatch&lt;TArgs&gt;

Properties

PropertyModifierTypeDefined in
argsreadonlyTArgspackages/core/dist/channels/dispatch.d.ts:15
nodeNamereadonlystringpackages/core/dist/channels/dispatch.d.ts:14