API Reference
timeoutBundle()
Creates a timeout bundle.
Import
import { timeoutBundle } from "@graphrefly/ts/orchestration";
Signature
function timeoutBundle(
graph: Graph,
source: Node<T>,
ms: number,
opts: { name?: string } = {},
): TimeoutBundle<T>
Parameters
| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
source | Node<T> | Source node that provides graph-visible input. |
ms | number | MS value used by the helper. |
opts | { name?: string } | Options that configure the helper. |
Returns
A bundle of graph-visible nodes for the recipe.
Example
import { timeoutBundle } from "@graphrefly/ts/orchestration";
Source
packages/ts/src/orchestration/resilience-bundles.ts