File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -498,7 +498,7 @@ Loop::addTimer(2.0, function () use ($promise) {
498498
499499### parallel()
500500
501- The ` parallel(iterable<callable():PromiseInterface<mixed,Exception >> $tasks): PromiseInterface<array<mixed>,Exception > ` function can be used
501+ The ` parallel(iterable<callable():PromiseInterface<mixed>> $tasks): PromiseInterface<array<mixed>> ` function can be used
502502like this:
503503
504504``` php
@@ -540,7 +540,7 @@ React\Async\parallel([
540540
541541### series()
542542
543- The ` series(iterable<callable():PromiseInterface<mixed,Exception >> $tasks): PromiseInterface<array<mixed>,Exception > ` function can be used
543+ The ` series(iterable<callable():PromiseInterface<mixed>> $tasks): PromiseInterface<array<mixed>> ` function can be used
544544like this:
545545
546546``` php
@@ -582,7 +582,7 @@ React\Async\series([
582582
583583### waterfall()
584584
585- The ` waterfall(iterable<callable(mixed=):PromiseInterface<mixed,Exception >> $tasks): PromiseInterface<mixed,Exception > ` function can be used
585+ The ` waterfall(iterable<callable(mixed=):PromiseInterface<mixed>> $tasks): PromiseInterface<mixed> ` function can be used
586586like this:
587587
588588``` php
Original file line number Diff line number Diff line change @@ -652,8 +652,8 @@ function coroutine(callable $function, mixed ...$args): PromiseInterface
652652}
653653
654654/**
655- * @param iterable<callable():PromiseInterface<mixed,Exception >> $tasks
656- * @return PromiseInterface<array<mixed>,Exception >
655+ * @param iterable<callable():PromiseInterface<mixed>> $tasks
656+ * @return PromiseInterface<array<mixed>>
657657 */
658658function parallel (iterable $ tasks ): PromiseInterface
659659{
@@ -711,8 +711,8 @@ function parallel(iterable $tasks): PromiseInterface
711711}
712712
713713/**
714- * @param iterable<callable():PromiseInterface<mixed,Exception >> $tasks
715- * @return PromiseInterface<array<mixed>,Exception >
714+ * @param iterable<callable():PromiseInterface<mixed>> $tasks
715+ * @return PromiseInterface<array<mixed>>
716716 */
717717function series (iterable $ tasks ): PromiseInterface
718718{
@@ -762,8 +762,8 @@ function series(iterable $tasks): PromiseInterface
762762}
763763
764764/**
765- * @param iterable<callable(mixed=):PromiseInterface<mixed,Exception >> $tasks
766- * @return PromiseInterface<mixed,Exception >
765+ * @param iterable<callable(mixed=):PromiseInterface<mixed>> $tasks
766+ * @return PromiseInterface<mixed>
767767 */
768768function waterfall (iterable $ tasks ): PromiseInterface
769769{
You can’t perform that action at this time.
0 commit comments