Exemplo n.º 1
0
        protected Task <List <int> > CreateSingleListen(int look, TimeSpan?listenTime = null)
        {
            var task = signaler.ListenAsync(look, (x) => x == look, listenTime ?? TimeSpan.FromMinutes(1), CancellationToken.None);

            Assert.False(task.IsCompleted); //There should be no signals yet
            return(task);
        }