Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Collector<THandler>

Type parameters

  • THandler: (...args: any[]) => any

Hierarchy

  • Collector

Index

Constructors

Properties

Methods

Constructors

constructor

  • Create a new collector.

    Type parameters

    • THandler: (...args: any[]) => any

    Parameters

    • signal: Signal<THandler>

      The signal to emit.

    Returns Collector<THandler>

Properties

Readonly emit

emit: (...args: Parameters<THandler>) => void

Type declaration

    • (...args: Parameters<THandler>): void
    • Publish the bound signal event (call all handlers) to start the collection process.

      method

      Parameters

      • Rest ...args: Parameters<THandler>

      Returns void

Methods

Abstract handleResult

  • handleResult(result: ReturnType<THandler>): boolean
  • Process the results of a handler invocation.

    Parameters

    • result: ReturnType<THandler>

      true to continue processing handlers.

    Returns boolean

Generated using TypeDoc