timdp/es6-promise-pool

concurrency of 1, does it guarantee order?

ORESoftware opened this issue · 2 comments

I haven't uses this lib before but considering it - one question I have is - given a concurrency of 1, and I pass multiple promises to the pool, does this lib guarantee the order of which they get run? In other words, they should run in series, but I want to make sure if A is passed before B, that A will always complete before B starts executing. Thanks!

timdp commented

Yep. It uses iterators underneath, and those are always sequential.

Sounds good thanks