GraphReFlyTS

API Reference

rateLimitBundle()

Creates a rate limit bundle.

Import

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

Signature

function rateLimitBundle(
	graph: Graph,
	source: Node<T>,
	opts: RateLimitOptions,
): RateLimitBundle<T>

Parameters

ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
sourceNode<T>Source node that provides graph-visible input.
optsRateLimitOptionsOptions that configure the helper.

Returns

A bundle of graph-visible nodes for the recipe.

Example

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

Source

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