src/vs/base/parts/storage/common/storage.ts/Storage/whenFlushed
class Storage:	async whenFlushed(): Promise<void> {
		if (!this.hasPending) {
			return; // return early if nothing to do
		}

		return new Promise(resolve => this.whenFlushedCallbacks.push(resolve));
	}