Esempio n. 1
0
        public static T TryDequeue <T>(this QueueAsync <T> queue)
        {
            T res;

            queue.TryDequeue(out res);
            return(res);
        }
        public static async Task AssertEmpty <T>(this QueueAsync <T> queue, IRtmClient client, int millis)
        {
            await Task.Delay(millis);

            await client.Yield();

            Assert.That(queue.TryDequeue(), Is.EqualTo(null));
        }
Esempio n. 3
0
 public bool TryDequeue(out string res)
 {
     return(_queue.TryDequeue(out res));
 }