An event loop abstraction.
$ npm install --save voltrevo-event-loop
At the moment, this package basically implements
setTimeout without using the global event loop. Control is given to you in the form of
var EventLoop = ;var el = ;el;el;el;// No output yetel; // bel; // cel; // a// Or use el.run() to keep running until no events are left.
.run() will run all tasks that it can possibly see, which includes tasks that get added during
.run(). It doesn't just run the tasks that have been posted before the call.
el;el;el;// No output yetel; // b, c, a
MIT © Andrew Morris