GraphReFlyTS

API Reference

breakerBundle()

Creates a breaker bundle.

Import

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

Signature

function breakerBundle(
	graph: Graph,
	events: Node<ResilienceEvent>,
	opts: BreakerOptions,
): BreakerBundle

Parameters

ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
eventsNode<ResilienceEvent>Event node or event collection to consume.
optsBreakerOptionsOptions that configure the helper.

Returns

A bundle of graph-visible nodes for the recipe.

Example

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

Source

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