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

x/stream_observables/sinks/discard.ts>discard

A collection of observables built with ReadableStreams & friends.
Latest
function discard
import { discard } from "https://deno.land/x/stream_observables@v1.3/sinks/discard.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.