commandex
v1.0.6
Published
**Simple Command queue that executed the commnad usign a FIFO policy.**
Downloads
2
Readme
CommandEx
An implementation of a Event/Command Queue.
Usage
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()