@runloop/agent-axon-client
    Preparing search index...

    Class ListenerSet<T>

    A typed set of listeners with safe fan-out dispatch.

    Each call to emit iterates a snapshot of the current listeners, wrapping each invocation in a try/catch so that one faulty listener cannot prevent subsequent listeners from being called.

    Type Parameters

    • T extends (arg: never) => void

      The listener function signature (must accept a single argument).

    Index

    Constructors

    Accessors

    Methods

    Constructors

    • Type Parameters

      • T extends (arg: never) => void

        The listener function signature (must accept a single argument).

      Parameters

      • onError: (error: unknown) => void

      Returns ListenerSet<T>

    Accessors

    Methods

    • Dispatches arg to every registered listener with error isolation.

      Parameters

      • arg: Parameters<T>[0]

      Returns void