@epikodelabs/streamix / src/public-api / PushSink
Interface: PushSink<T>
Defined in: projects/libraries/streamix/src/lib/factories/fromPush.ts:15
The write-only producer interface for adapting callback-driven APIs.
Type Parameters
T
T
Methods
next()
next(
value):Promise<void>
Defined in: projects/libraries/streamix/src/lib/factories/fromPush.ts:25
Delivers a value. Await this for cooperative backpressure in discrete mode.
Resolves when the value is accepted into the bounded buffer, or when the overflow policy drops it — it does not wait for delivery, the atom's current value update, or subscriber callbacks. Awaiting applies backpressure only while the buffer is full.
Parameters
value
T
Returns
Promise<void>
error()
error(
reason):void
Defined in: projects/libraries/streamix/src/lib/factories/fromPush.ts:27
Terminates the source with an error; queued values are discarded.
Parameters
reason
unknown
Returns
void
complete()
complete():
void
Defined in: projects/libraries/streamix/src/lib/factories/fromPush.ts:29
Stops accepting values, then delivers already accepted values before completing.
Returns
void