@epikodelabs/streamix / empty
Function: empty()
empty<
T>():Stream<T>
Defined in: projects/libraries/streamix/src/lib/streams/EMPTY.ts:23
A singleton instance of an empty stream.
This constant provides a reusable, empty stream that immediately completes upon subscription without emitting any values. It is useful in stream compositions as a placeholder or to represent a sequence with no elements.
Type Parameters
T
T = any
Returns
Stream<T>