src/vs/base/common/async.ts/DeferredPromise/error
class DeferredPromise:	public error(err: unknown) {
		return new Promise<void>(resolve => {
			this.errorCallback(err);
			this.rejected = true;
			resolve();
		});
	}