Appearance
Graphorin API reference v0.4.0
Graphorin API reference / @graphorin/server / commentary / CommentaryAuditSink
Defined in: packages/server/src/commentary/audit-bridge.ts:59
A commentary sink that also exposes a drain() so callers (and tests) can await any in-flight audit writes.
drain()
DeliveryCommentarySink
drain
readonly
Promise
void
onDecision(decision): void;
Defined in: packages/server/src/commentary/types.ts:106
Called once per applied decision. Implementations should be non-throwing; the sanitizer wraps the call in try/catch so a misbehaving sink never blocks the wire.
try/catch
decision
DeliveryCommentaryDecision
DeliveryCommentarySink.onDecision
onDecision
Graphorin API reference v0.4.0
Graphorin API reference / @graphorin/server / commentary / CommentaryAuditSink
Interface: CommentaryAuditSink
Defined in: packages/server/src/commentary/audit-bridge.ts:59
A commentary sink that also exposes a
drain()so callers (and tests) can await any in-flight audit writes.Stable
Extends
DeliveryCommentarySinkProperties
drainreadonlyPromise<void>Methods
onDecision()
Defined in: packages/server/src/commentary/types.ts:106
Called once per applied decision. Implementations should be non-throwing; the sanitizer wraps the call in
try/catchso a misbehaving sink never blocks the wire.Parameters
decisionDeliveryCommentaryDecisionReturns
voidInherited from
DeliveryCommentarySink.onDecision