src/vs/platform/remote/common/remoteAgentConnection.ts/PromiseWithTimeout/reject
class PromiseWithTimeout:	public reject(err: any): void {
		if (this._state !== 'pending') {
			return;
		}
		this._disposables.dispose();
		this._state = 'rejected';
		this._rejectPromise(err);
	}