EventEmitter

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.

Online Documentation

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var event: Event<T>

The event listeners can subscribe to.

Functions

Link copied to clipboard
open override fun dispose()

Dispose this object and free resources.

Link copied to clipboard
fun fire(data: T)

Notify all subscribers of the event. Failure of one or more listener will not fail this function call.