Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

fromNext

import { fromNext } from "https://raw.githubusercontent.com/surma/observables-with-streams/28c55be6d855780c677fd1f4ba975f4d3144891d/src/index.ts";

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

See also external.

function fromNext<T>(f: (next: NextFunc<T>) => unknown): Observable<T>;
§
fromNext<T>(f: (next: NextFunc<T>) => unknown): Observable<T>
[src]

§Type Parameters

§Parameters

§
f: (next: NextFunc<T>) => unknown
[src]

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

§Return Type

§

New observable.