@epikodelabs/streamix / src/public-api / RuntimeEventBus
Interface: RuntimeEventBus
Defined in: projects/libraries/streamix/src/lib/runtime/events.ts:40
FIFO, reentrancy-safe event delivery. A listener may publish another event, but the current event is delivered to every listener before the next begins. Listener exceptions cannot corrupt execution or strand the queue. Publishing while unobserved costs one set-size check: no event is built or queued, so production flows pay nothing per emission.
Accessors
observed
Get Signature
get observed():
boolean
Defined in: projects/libraries/streamix/src/lib/runtime/events.ts:51
Returns
boolean
Methods
observe()
observe(
listener): () =>void
Defined in: projects/libraries/streamix/src/lib/runtime/events.ts:46
Parameters
listener
(event) => void
Returns
() => void
publish()
publish(
event):void
Defined in: projects/libraries/streamix/src/lib/runtime/events.ts:53
Parameters
event
Omit<RuntimeEvent, "sequence">
Returns
void