Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface for controlling the generators returned by eventToGenerator.

Type parameters

  • T

  • E = T | any

Hierarchy

  • Controller

Index

Methods

clear

  • clear(): void
  • Clear all pending values queued to the generator.

    Returns void

end

  • end(e?: E): void
  • Queue e (optional) to be returned by the generator, ending it.

    Parameters

    • Optional e: E

    Returns void

send

  • send(v: T): void
  • Queue v to the generator.

    Parameters

    • v: T

    Returns void

throw

  • throw(err: Error): void
  • Queue an error to be thrown by the generator, ending it.

    Parameters

    • err: Error

    Returns void

Generated using TypeDoc