Class Collector<THandler>Abstract

Type Parameters

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

Hierarchy

  • Collector

Constructors

Properties

Methods

Constructors

  • Create a new collector.

    Type Parameters

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

    Parameters

    • signal: Signal<THandler>

      The signal to emit.

    Returns Collector<THandler>

Properties

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

  • Process the results of a handler invocation.

    Parameters

    • result: ReturnType<THandler>

      true to continue processing handlers.

    Returns boolean

Generated using TypeDoc