@epikodelabs/streamix / src/public-api / FromIteratorOptions
Interface: FromIteratorOptions<T>
Defined in: projects/libraries/streamix/src/lib/atoms/atom.ts:796
Runtime options shared by writable atoms, derived atoms, and scope-created atoms.
Extends
Type Parameters
T
T
Properties
maxSubscribers?
optionalmaxSubscribers?:number
Defined in: projects/libraries/streamix/src/lib/atoms/atom.ts:41
Soft subscriber limit used to detect likely leaks. The atom still works after the limit, but the runtime may warn.
Inherited from
onError?
optionalonError?: (error) =>void
Defined in: projects/libraries/streamix/src/lib/atoms/atom.ts:45
Handles errors raised by the atom source or subscribers.
Parameters
error
any
Returns
void
Inherited from
terminateOnError?
optionalterminateOnError?:boolean
Defined in: projects/libraries/streamix/src/lib/atoms/atom.ts:49
Disposes the atom after an error instead of keeping it recoverable.
Inherited from
propagateErrors?
optionalpropagateErrors?:boolean
Defined in: projects/libraries/streamix/src/lib/atoms/atom.ts:55
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
initialValue?
optionalinitialValue?:T
Defined in: projects/libraries/streamix/src/lib/atoms/atom.ts:798
Value exposed before the source async iterable emits for the first time.