Class CollectorArray<THandler>

Returns the result of the all signal handlers from a signal emission in an array.

Typeparam

THandler The function signature to be implemented by handlers.

Type Parameters

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

Hierarchy

Constructors

Properties

Methods

Constructors

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

  • Get the list of results from the signal handlers.

    Returns ReturnType<THandler>[]

  • Process the results of a handler invocation.

    Parameters

    • result: ReturnType<THandler>

      true to continue processing handlers.

    Returns boolean

Generated using TypeDoc