Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / src/public-api / StreamixRuntime

Interface: StreamixRuntime ​

Defined in: projects/libraries/streamix/src/lib/runtime/runtime.ts:203

Properties ​

graph ​

readonly graph: RuntimeGraph

Defined in: projects/libraries/streamix/src/lib/runtime/runtime.ts:204


events ​

readonly events: RuntimeEventBus

Defined in: projects/libraries/streamix/src/lib/runtime/runtime.ts:205


diagnostics ​

diagnostics: RuntimeDiagnosticsPort

Defined in: projects/libraries/streamix/src/lib/runtime/runtime.ts:207

Diagnostics-only state; the reactive core never reads it.


root ​

readonly root: Readonly<{ type: "root"; }>

Defined in: projects/libraries/streamix/src/lib/runtime/runtime.ts:208


scheduling ​

readonly scheduling: RuntimeScheduling

Defined in: projects/libraries/streamix/src/lib/runtime/runtime.ts:224

Methods ​

markFlowNode() ​

markFlowNode(node): void

Defined in: projects/libraries/streamix/src/lib/runtime/runtime.ts:215

Record a flow-backed atom's identity. Unconditional: the graph 'change' dedupe in changed() must not depend on instrumentation being enabled.

Parameters ​

node ​

object

Returns ​

void


hasFlow() ​

hasFlow(node): boolean

Defined in: projects/libraries/streamix/src/lib/runtime/runtime.ts:220

True when the node is a flow-backed atom (used to dedupe emissions).

Parameters ​

node ​

object

Returns ​

boolean


register() ​

register(node, schedulable?, origin?): void

Defined in: projects/libraries/streamix/src/lib/runtime/runtime.ts:227

Register a node, optionally linking its scheduler state and creation site for diagnostics.

Parameters ​

node ​

object

schedulable? ​

SchedulableNode

origin? ​

RuntimeOrigin

Returns ​

void


schedulableOf() ​

schedulableOf(node): SchedulableNode | undefined

Defined in: projects/libraries/streamix/src/lib/runtime/runtime.ts:235

The scheduler-owned state of a node, when it has one.

Parameters ​

node ​

object

Returns ​

SchedulableNode | undefined


dependencies() ​

dependencies(node, sources): void

Defined in: projects/libraries/streamix/src/lib/runtime/runtime.ts:239

Parameters ​

node ​

object

sources ​

Iterable<object>

Returns ​

void


onInvalidate() ​

onInvalidate(node, invalidate): () => void

Defined in: projects/libraries/streamix/src/lib/runtime/runtime.ts:245

Register a graph-managed derived invalidator, not a public subscription.

Parameters ​

node ​

object

invalidate ​

() => void

Returns ​

() => void


changed() ​

changed(source): void

Defined in: projects/libraries/streamix/src/lib/runtime/runtime.ts:253

Publish a committed value change to current graph dependents.

Parameters ​

source ​

object

Returns ​

void


dispose() ​

dispose(node): void

Defined in: projects/libraries/streamix/src/lib/runtime/runtime.ts:270

Parameters ​

node ​

object

Returns ​

void


beginExecution() ​

beginExecution(node, name?, origin?): ExecutionSpan

Defined in: projects/libraries/streamix/src/lib/runtime/runtime.ts:282

Opens one execution of a node: accounting token, bus events, or neither. Returns a shared no-op span when instrumentation is off and the bus is unobserved, so an unobserved production emission allocates nothing.

Parameters ​

node ​

object

name? ​

string

origin? ​

RuntimeOrigin

Returns ​

ExecutionSpan

Released under the MIT License.