src/vs/platform/storage/common/storage.ts/AbstractStorageService/doFlushWhenIdle
class AbstractStorageService:	private doFlushWhenIdle(): void {
		this.runFlushWhenIdle.value = runWhenIdle(() => {
			if (this.shouldFlushWhenIdle()) {
				this.flush();
			}

			// repeat
			this.flushWhenIdleScheduler.schedule();
		});
	}