timeoutBundle()
Creates a timeout bundle.
Import
Section titled “Import”import { timeoutBundle } from "@graphrefly/ts/orchestration";Signature
Section titled “Signature”function timeoutBundle( graph: Graph, source: Node<T>, ms: number, opts: { name?: string } = {},): TimeoutBundle<T>Parameters
Section titled “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
Section titled “Returns”A bundle of graph-visible nodes for the recipe.
Example
Section titled “Example”import { timeoutBundle } from "@graphrefly/ts/orchestration";Source
Section titled “Source”packages/ts/src/orchestration/resilience-bundles.ts