src/vs/workbench/api/common/extHostNotebookKernels.ts/TimeoutBasedCollector/addItem
class TimeoutBasedCollector:	addItem(item: T): Promise<void> {
		this.batch.push(item);
		if (!this.waitPromise) {
			this.waitPromise = timeout(this.delay).then(() => {
				this.waitPromise = undefined;
				const batch = this.batch;
				this.batch = [];
				return this.callback(batch);
			});
		}

		return this.waitPromise;
	}