wrapper for EventEmitter which queues events and add done
method to them.
Each event becomes command which is triggered after previous command is done.
API:
createCommandEmitter(ee: {emit, on}) : {command, on};
example:
const assert = ;const createCommandEmitter = ;const EventEmitter = ; const ee = ;const ce = ;const animals = ; ce; ce; ce; ce;ce;ce;