Skip to content

@epikodelabs/streamix


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

Interface: AtomFromIteratorOptions<T>

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

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

Extends

Type Parameters

T

T

Properties

discrete?

optional discrete: boolean

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

Forces this atom to notify subscribers synchronously even when it is created inside an analog scope.

Inherited from

AtomOptions.discrete


maxSubscribers?

optional maxSubscribers: number

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

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:73

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:77

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:82

Controls whether subscriber/source errors are rethrown after error handlers run.

Inherited from

AtomOptions.propagateErrors


initialValue?

optional initialValue: T

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

Value exposed before the source async iterable emits for the first time.

Released under the GNU AGPL v3 or later.