attachObserveSink()
Attach adapter-owned storage to Graph.observe() read-only egress (D57/D74/D125). Writes are
serialized in observe order; lifecycle barriers drain the queue without mutating graph topology.
Import
Section titled “Import”import { attachObserveSink } from "@graphrefly/ts/adapters/observe-storage";Signature
Section titled “Signature”function attachObserveSink( graph: Graph, sink: ObserveSink<T>, opts: AttachObserveSinkOptions<T> = {},): ObserveSinkHandleParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
sink | ObserveSink<T> | sink value used by the helper. |
opts | AttachObserveSinkOptions<T> | Options that configure the helper. |
Returns
Section titled “Returns”A ObserveSinkHandle value.
Example
Section titled “Example”import { attachObserveSink } from "@graphrefly/ts/adapters/observe-storage";Source
Section titled “Source”packages/ts/src/adapters/observe-storage.ts