Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/stream_observables/sinks/mod.ts

A collection of observables built with ReadableStreams & friends.
Latest
import * as streamObservables from "https://deno.land/x/stream_observables@v1.3/sinks/mod.ts";

Functions

Collects all values from the observable into an array.

Sink for observables that discards all values. Useful to leave at the end of a chain.

Resolves with the first element emitted by the observable, then releases the observable. If no items are emitted the promise is rejected.

Resolves with the last element emitted by the observable. If no items are emitted the promise is rejected.

Accumulates value, starting with v0 and applying f to each emitted item. If no items are emitted the promise is rejected.

Resolves with the only element emitted by the observable. If zero or more than one items are emitted, the promise is rejected.

Alias for discard.