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

x/stream_observables/mod.ts>forEach

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

Calls a function for each item emitted by an observable without waiting for the function to return to forward the item. Exceptions thrown by the function will be caught and ignored.

Parameters

f: (x: T) => Promise<unknown> | unknown

Function called with each emitted value.

Returns

Transform that emits the same items as the original observable.