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

x/stream_observables/mod.ts>fromNext

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

Creates an observable from a function that gets passed the observable's next() function.

See also external.

Parameters

f: (next: NextFunc<T>) => unknown

Function that will be executed with the observable's next() function.

Returns

New observable.