File tree 2 files changed +9
-9
lines changed
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) {
498
498
499
499
### parallel()
500
500
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
502
502
like this:
503
503
504
504
``` php
@@ -540,7 +540,7 @@ React\Async\parallel([
540
540
541
541
### series()
542
542
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
544
544
like this:
545
545
546
546
``` php
@@ -582,7 +582,7 @@ React\Async\series([
582
582
583
583
### waterfall()
584
584
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
586
586
like this:
587
587
588
588
``` php
Original file line number Diff line number Diff line change @@ -652,8 +652,8 @@ function coroutine(callable $function, mixed ...$args): PromiseInterface
652
652
}
653
653
654
654
/**
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>>
657
657
*/
658
658
function parallel (iterable $ tasks ): PromiseInterface
659
659
{
@@ -711,8 +711,8 @@ function parallel(iterable $tasks): PromiseInterface
711
711
}
712
712
713
713
/**
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>>
716
716
*/
717
717
function series (iterable $ tasks ): PromiseInterface
718
718
{
@@ -762,8 +762,8 @@ function series(iterable $tasks): PromiseInterface
762
762
}
763
763
764
764
/**
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>
767
767
*/
768
768
function waterfall (iterable $ tasks ): PromiseInterface
769
769
{
You can’t perform that action at this time.
0 commit comments