breakerBundle()
Creates a breaker bundle.
Import
Section titled “Import”import { breakerBundle } from "@graphrefly/ts/orchestration";Signature
Section titled “Signature”function breakerBundle( graph: Graph, events: Node<ResilienceEvent>, opts: BreakerOptions,): BreakerBundleParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
events | Node<ResilienceEvent> | Event node or event collection to consume. |
opts | BreakerOptions | Options that configure the helper. |
Returns
Section titled “Returns”A bundle of graph-visible nodes for the recipe.
Example
Section titled “Example”import { breakerBundle } from "@graphrefly/ts/orchestration";Source
Section titled “Source”packages/ts/src/orchestration/resilience-bundles.ts