Skip to content
PACKAGES

breakerBundle()

Creates a breaker bundle.

import { breakerBundle } from "@graphrefly/ts/orchestration";
function breakerBundle(
graph: Graph,
events: Node<ResilienceEvent>,
opts: BreakerOptions,
): BreakerBundle
ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
eventsNode<ResilienceEvent>Event node or event collection to consume.
optsBreakerOptionsOptions that configure the helper.

A bundle of graph-visible nodes for the recipe.

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

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