Example #1
0
 private void EnqueueJob(Job[] queue, Job job)
 {
     if (queue.Length > 3) {
         Sender.Tell(new Status.Failure(new Exception($"Too many jobs in queue: {job.Url}")));
         Running(queue);
     }
     else {
         Running(queue.Concat(job).ToArray());
     }
 }