admissionHandoff()
Build a bounded admission-gated hub-to-hub handoff.
The accepted port is a pull-quiet causal boundary: rejected, unmatched and replayed inputs do not preflight downstream work. A first correlated admission is released as one fresh ordinary DIRTY-to-DATA wave. The factory owns every internal lifecycle flag; callers cannot override them.
Import
Section titled “Import”import { admissionHandoff } from "@graphrefly/ts/patterns";Signature
Section titled “Signature”function admissionHandoff( graph: Graph, opts: AdmissionHandoffOptions<T, R>,): AdmissionHandoffBundle<T, R>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the visible correlation and release topology. |
opts | AdmissionHandoffOptions<T, R> | Candidate/decision inputs and explicit memory bounds. |
Returns
Section titled “Returns”The accepted/rejected/status/issue/cursor ports and controller release handle.
Example
Section titled “Example”import { admissionHandoff } from "@graphrefly/ts/patterns";
const handoff = admissionHandoff(graph, { candidates, decisions, maxPending: 128, maxRecent: 256,});Source
Section titled “Source”packages/ts/src/patterns/admission-handoff.ts