It would be nice to know how many items were already enqueued under a given flow Id and maybe even cancel/throw if we exceeded a configurable maximum.
drrFairQueue.getLength('my-flow-id'); // 16
drrFairQueue.push('my-flow-id', someValue); //throws error "Maximum Flow Size exceeded"
It would be nice to know how many items were already enqueued under a given flow Id and maybe even cancel/throw if we exceeded a configurable maximum.
drrFairQueue.getLength('my-flow-id'); // 16
drrFairQueue.push('my-flow-id', someValue); //throws error "Maximum Flow Size exceeded"