in 0.5.0-incubating/hive/scaladocs/lib/scheduler.js [33:41]
this.nextWork = function() {
var fn = undefined;
var idx = 0;
while (idx < scheduler.queues.length && scheduler.queues[idx].length == 0) { idx = idx + 1; }
if (idx < scheduler.queues.length && scheduler.queues[idx].length > 0) {
var fn = scheduler.queues[idx].shift();
}
return fn;
}