Class: FirstAvailable

FirstAvailable

Pick a worker, remove it from the queue, send it work. When the worker is complete (either by callback or by ready signal) then put the worker back on the end of the queue. Attempts to give workers the most time to breathe between jobs.

NOTE: Keeps track if workers are busy, if they are will queue up work until a worker becomes available.

new Schedulers.FirstAvailable()

schedulers/firstavailable.js, line 14