Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EventEmitter<T>

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(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

Generated by TypeDoc. Maintained by 紫升

Links: 搜外友链, 69中文网