コード例 #1
0
 /// <summary>
 /// Blocking dequeue. If queue is empty wait until it is filled.
 /// </summary>
 /// <returns></returns>
 public Task <RedisValue> BDequeue()
 {
     try
     {
         return(_list.BRpop());
     }
     catch (Exception e)
     {
         // there might be a timeout error
         // TODO: what to do in a timeout
         Console.WriteLine(e);
         throw;
     }
 }