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

fromGenerator

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

Creates an observable from a generator that takes no arguments.

function fromGenerator<T>(f: GeneratorFunc<T>): Observable<T>;
§
fromGenerator<T>(f: GeneratorFunc<T>): Observable<T>
[src]

§Type Parameters

§Parameters

§
f: GeneratorFunc<T>
[src]

Generator function to create an observable from.

§Return Type

§

New observable that emits values from the generator.