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)); }
public bool TryDequeue(out string res) { return(_queue.TryDequeue(out res)); }