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

层级

  • EventEmitter

索引

Constructors(1)

Properties(1)

Methods(2)

Constructors(1)

constructor

Properties(1)

event

event: Event<T>

The event listeners can subscribe to.

Methods(2)

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

友链:VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场

Generated by TypeDoc. Maintained by 洛竹