How about having another onSize(limit) promise, which resolves when size <= limit? You already have onEmpty and onIdle. Personally I don't want to queue 100k+ promises right at the start. So would be nice to be able to queue them on demand when queue size drops below say 2x concurrency.
Could perhaps consider onSizeBy(limit, options) as well.
How about having another
onSize(limit)
promise, which resolves when size <= limit? You already haveonEmpty
andonIdle
. Personally I don't want to queue 100k+ promises right at the start. So would be nice to be able to queue them on demand when queue size drops below say 2xconcurrency
.Could perhaps consider
onSizeBy(limit, options)
as well.