Represents a typed event.
A function that represents an event to which you subscribe by calling it with a listener function as argument.
Example
item.onDidChange(function (event) {
console.log('Event happened: ' + event);
});
Name |
---|
T |
▸ Event(listener
, thisArgs?
, disposables?
): Disposable
A function that represents an event to which you subscribe by calling it with a listener function as argument.
Name | Type | Description |
---|---|---|
listener |
(e : T ) => any |
The listener function will be called when the event happens. |
thisArgs? |
any |
The this -argument which will be used when calling the event listener. |
disposables? |
Disposable [] |
An array to which a Disposable will be added. |
A disposable which unsubscribes the event listener.