src/vs/platform/remote/common/remoteAgentConnection.ts/createTimeoutCancellation
function createTimeoutCancellation(millis: number): CancellationToken {
	const source = new CancellationTokenSource();
	setTimeout(() => source.cancel(), millis);
	return source.token;
}