Interface Disposable

You should call the method dispose if you don't need the listener anymore.

Disposable

interface Disposable {
    dispose(): void;
}

Methods

Methods

  • When you call the dispose method the listener will be removed from the event emitter.

    Returns void