Cell API
    Preparing search index...

    Interface Event<T>

    Represents a typed event.

    interface Event<T> {
        maxListeners: number;
        (
            listener: (e: T) => any,
            thisArgs?: any,
            disposables?: Disposable[],
        ): Disposable;
    }

    Type Parameters

    • T
    • Parameters

      • listener: (e: T) => any

        The listener function will be call when the event happens.

      • OptionalthisArgs: any

        The 'this' which will be used when calling the event listener.

      • Optionaldisposables: Disposable[]

        An array to which a {{IDisposable}} will be added.

      Returns Disposable

      a disposable to remove the listener again.

    Index
    maxListeners: number

    An emitter will print a warning if more listeners are added for this event. The event.maxListeners allows the limit to be modified for this specific event. The value can be set to 0 to indicate an unlimited number of listener.