Skip to content

Commit 7012b4c

Browse files
authored
Merge pull request #73 from WyriHaximus-labs/4.x-template-params-can-only-have-one-argument
[4.x] Template params can only have one argument
2 parents 4ba58fb + 55b44c0 commit 7012b4c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff 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
502502
like 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
544544
like 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
586586
like this:
587587

588588
```php

src/functions.php

+6-6
Original file line numberDiff line numberDiff 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
*/
658658
function 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
*/
717717
function 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
*/
768768
function waterfall(iterable $tasks): PromiseInterface
769769
{

0 commit comments

Comments
 (0)