Skip to content

Function: empty()

empty<T>(): Stream<T>

Defined in: 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>

Released under the MIT License.