I am writing a program in Javascript, CoffeeScript and jQuery to be exact. I have one function that is adding things to a queue as they come in from the network. What I want is for when something is added to this queue for an event to fire to tell another function to start removing items from the queue. What would be a good way to do this?
Share
Something like this could work: