Allow iterable
instead of array
for parallel()
, series()
and waterfall()
#41
Labels
easy pick
Good for newcomers
help wanted
Extra attention is needed
new feature
New feature or request
Milestone
We should support accepting an
iterable
instead of only anarray
forparallel()
,series()
andwaterfall()
. Theiterable
pseudo type is available as of PHP 7.1, so we can take advantage of this for our Async v3 and Async v4 (see also #11 and #14). It supports passing anarray
just like now, but also acceptsIterator
s andGenerator
s.I'm not currently working on this, but figured it makes sense to report here in order to track this feature request. In case anybody feels like picking this up, any input and PRs would be much appreciated 👍 (I've also filed the same suggestion for Promise v3 in reactphp/promise#221)
The text was updated successfully, but these errors were encountered: