caolan/async — Issue #64: undocumented method: queue.running(), and other queue documention tweaks
Author: dgreisen
Created: 2011-10-31 14:46:27+00:00
State: open

You have provided superior documention for this library.
Modifying the README in the following ways could save some people a bit of time:

Please insert into queue method list:
* running() - a function returning the number of working workers

Please modify 'drain()' and 'empty() as follows:
* empty - a callback that is called when the last item from the queue is given to a worker; called every time the the queue is empty.
* drain - a callback that is called when the last item from the queue has returned from the worker; called every time the queue is empty and there are no working workers.

This clarifies that the empty and drain methods function more like events - they will be called whenever the conditions are met, not just once.