Count of values dropped by the 'drop-oldest'/'latest' overflow policy.
Number of values currently buffered for async-iterator consumers.
true once the stream has been closed (by Stream.close/Stream.end/Stream.fail).
Alias for Stream.end — stop the underlying source and close.
Close the stream with a terminal error, rejecting any parked async iterators.
Gracefully end the stream: iterators drain the buffer then complete.
Emit an error to 'error' listeners. Does not close the stream (transient errors keep the stream alive).
Remove a previously-added listener.
Remove a previously-added listener.
Subscribe to values ('data'), errors ('error'), or close ('close'). Returns an unsubscribe fn.
Subscribe to values ('data'), errors ('error'), or close ('close'). Returns an unsubscribe fn.
Subscribe to values ('data'), errors ('error'), or close ('close'). Returns an unsubscribe fn.
Push a value to every listener and the async-iterator buffer. No-op once closed.
A live stream of
T. Construct one via thestream*helpers; you rarelynewthis directly. Producers call Stream.push, Stream.fail, and Stream.end; consumers use listeners orfor await.