Skip to content

@epikodelabs/streamix


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

Interface: FlowOptions ​

Defined in: projects/libraries/streamix/src/lib/atoms/atom.ts:1212

Runtime options shared by writable atoms, derived atoms, and scope-created atoms.

Extends ​

Properties ​

maxSubscribers? ​

optional maxSubscribers?: number

Defined in: projects/libraries/streamix/src/lib/atoms/atom.ts:33

Soft subscriber limit used to detect likely leaks. The atom still works after the limit, but the runtime may warn.

Inherited from ​

AtomOptions.maxSubscribers


onError? ​

optional onError?: (error) => void

Defined in: projects/libraries/streamix/src/lib/atoms/atom.ts:37

Handles errors raised by the atom source or subscribers.

Parameters ​

error ​

any

Returns ​

void

Inherited from ​

AtomOptions.onError


terminateOnError? ​

optional terminateOnError?: boolean

Defined in: projects/libraries/streamix/src/lib/atoms/atom.ts:41

Disposes the atom after an error instead of keeping it recoverable.

Inherited from ​

AtomOptions.terminateOnError


propagateErrors? ​

optional propagateErrors?: boolean

Defined in: projects/libraries/streamix/src/lib/atoms/atom.ts:47

Controls whether subscriber/source errors are rethrown after error handlers run. Applies to writable atoms and flow-backed sources; derived() always records errors and reports them through onError handlers.

Inherited from ​

AtomOptions.propagateErrors


mode? ​

optional mode?: "discrete" | "analog"

Defined in: projects/libraries/streamix/src/lib/atoms/atom.ts:1214

Sequence delivery mode. discrete preserves every emission; analog keeps the latest pending value.

Released under the MIT License.