GraphReFlyTS

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

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.

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