Simple rxjs-based queueing mechanism to prevent call overlap of a target interface
npm install @obsidize/command-queuebash
npm install --save @obsidize/command-queue
`
Usage
`typescript
import {CommandQueue} from '@obsidize/command-queue';
const queue = new CommandQueue();
const result = await queue.add(() => doSomePromiseStuff());
const resultList = await Promise.all([1, 2, 3, 4, 5].map(v => {
return queue.add(() => doSomePromiseStuffSerially(v));
}));
// If the result is a deferred Observable
const observable = queue.observe(() => generatedDeferredObservable());
``