Class Collector<THandler>Abstract

Type Parameters

  • THandler extends ((...args) => any)

Hierarchy

  • Collector

Constructors

Properties

Methods

Constructors

  • Create a new collector.

    Type Parameters

    • THandler extends ((...args) => any)

    Parameters

    • signal: Signal<THandler>

      The signal to emit.

    Returns Collector<THandler>

Properties

emit: ((...args) => void)

Type declaration

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

      Parameters

      • Rest ...args: Parameters<THandler>

      Returns void

      Method

Methods

  • Process the results of a handler invocation.

    Parameters

    • result: ReturnType<THandler>

      true to continue processing handlers.

    Returns boolean

Generated using TypeDoc