Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / src/public-api / empty

Function: empty()

empty<T>(): Atom<T>

Defined in: projects/libraries/streamix/src/lib/factories/EMPTY.ts:9

Creates an empty atom that emits no values and completes immediately.

Type Parameters

T

T = any

The type of the atom's values (will never be emitted).

Returns

Atom<T>

An empty atom.

Released under the GNU AGPL v3 or later.