Example #1
0
 private static bool TryDequeue(Queue tasks, out WebPageCaptureTask task)
 {
     task = null;
     if (tasks.Count <= 0)
     {
         return(false);
     }
     task = (WebPageCaptureTask)tasks.Dequeue();
     return(true);
 }
Example #2
0
 private static bool TryDequeue(Queue tasks, out WebPageCaptureTask task)
 {
     task = null;
     if (tasks.Count <= 0) return false;
     task = (WebPageCaptureTask)tasks.Dequeue();
     return true;
 }