Options
All
  • Public
  • Public/Protected
  • All
Menu

An event emitter can be used to create and manage an Event for others to subscribe to. One emitter always owns one event.

Use this class if you want to provide event from within your extension, for instance inside a TextDocumentContentProvider or when providing API to other extensions.

Type parameters

  • T

Hierarchy

  • EventEmitter

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

event

event: Event<T>

The event listeners can subscribe to.

Methods

fire

  • fire(data: T): void
  • Notify all subscribers of the event. Failure of one or more listener will not fail this function call.

    Parameters

    • data: T

      The event object.

    Returns void

dispose

  • dispose(): void
  • Dispose this object and free resources.

    Returns void

Generated using TypeDoc