Skip to content
PACKAGES

timeoutBundle()

Creates a timeout bundle.

import { timeoutBundle } from "@graphrefly/ts/orchestration";
function timeoutBundle(
graph: Graph,
source: Node<T>,
ms: number,
opts: { name?: string } = {},
): TimeoutBundle<T>
ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
sourceNode<T>Source node that provides graph-visible input.
msnumberMS value used by the helper.
opts{ name?: string }Options that configure the helper.

A bundle of graph-visible nodes for the recipe.

import { timeoutBundle } from "@graphrefly/ts/orchestration";

packages/ts/src/orchestration/resilience-bundles.ts