Ejemplo n.º 1
0
        public void Start()
        {
            _cancellationTokenSource = new CancellationTokenSource();
            var cancellationToken = _cancellationTokenSource.Token;

            _tasks = new[] { _connectionListener.RunAsync(cancellationToken), GameLoopAsync(cancellationToken) };
        }