Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/stream_observables/sinks/mod.ts>discard

A collection of observables built with ReadableStreams & friends.
Latest
function discard
Re-export
import { discard } from "https://deno.land/x/stream_observables@v1.3/sinks/mod.ts";

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

Parameters

optional
f: (v: T) => void = [UNSUPPORTED]

Function to call for each value before it’s discarded.