src/vs/base/common/event.ts/EventDeliveryQueue/deliver
class EventDeliveryQueue:	deliver(): void {
		while (this._queue.size > 0) {
			const element = this._queue.shift()!;
			try {
				element.listener.invoke(element.event);
			} catch (e) {
				onUnexpectedError(e);
			}
		}
	}