sabre-io / event

:bell: The sabre/event library provides utilities for lightweight event-based programming
http://sabre.io/event/
BSD 3-Clause "New" or "Revised" License
351 stars 22 forks source link

Promise\all() should take iterable like JavaScript Promise.all() #51

Open felixfbecker opened 7 years ago

felixfbecker commented 7 years ago

Promise\all() currently takes an array. Since it only iterates through it, that is an unneeded extra array conversion if you are working with Iterators / Generators.

evert commented 7 years ago

Good idea!