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
| 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
A bundle of graph-visible nodes for the recipe.
Example
import { breakerBundle } from "@graphrefly/ts/orchestration";
Source
packages/ts/src/orchestration/resilience-bundles.ts