private Task RunJobUntilEmptyAsync(IQueue <QueueItem> queue) { var job = new BenchmarkJobQueue(queue); return(job.RunUntilEmptyAsync()); }
private void RunJobUntilEmpty(IQueue <QueueItem> queue) { var job = new BenchmarkJobQueue(queue); job.RunUntilEmpty(); }