src/vs/platform/remote/common/remoteAgentConnection.ts/PromiseWithTimeout/resolve
class PromiseWithTimeout:	public resolve(value: T): void {
		if (this._state !== 'pending') {
			return;
		}
		this._disposables.dispose();
		this._state = 'resolved';
		this._resolvePromise(value);
	}