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

x/stream_observables/sources/mod.ts>fromGenerator

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

Creates an observable from a generator that takes no arguments.

Parameters

f: GeneratorFunc<T>

Generator function to create an observable from.

Returns

New observable that emits values from the generator.