Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "sources/from-generator"

Index

Type aliases

Functions

Type aliases

GeneratorFunc

GeneratorFunc<T>: function

Type parameters

  • T

Type declaration

    • (): IterableIterator<T>
    • Returns IterableIterator<T>

Functions

fromGenerator

  • Creates an observable from a generator that takes no arguments.

    Type parameters

    • T

      Type of items to be emitted by the observable.

    Parameters

    • f: GeneratorFunc<T>

      Generator function to create an observable from.

    Returns Observable<T>

    New observable that emits values from the generator.

Generated using TypeDoc