CommandEx
An implementation of a Event/Command Queue.
Create a new queue.
let commandex = require("commandex")
let queue = new commandex.CommandQueue();
Create a new command.
class MyCommand extends commandex.Command {
execeute(context){
// do stuff
}
}
Publish the command onto the queue.
queue.publish(new MyCommand())
.then( function(commandReturnedValue) {} )
Service the command queue items.
queue.execute()