Open unscriptable opened 11 years ago
This code seems to need a general makeover. The requirement is to ensure the queue isn't processed while new tasks are being added. There has to be a better way to do this than a currentlyProcessing flag and a setTimeout().
This code seems to need a general makeover. The requirement is to ensure the queue isn't processed while new tasks are being added. There has to be a better way to do this than a currentlyProcessing flag and a setTimeout().