Skip to content

Commit 73ee629

Browse files
authored
Merge pull request #74 from WyriHaximus-labs/3.x-template-params-can-only-have-one-argument
[3.x] Template params can only have one argument
2 parents e623a64 + 9fb518d commit 73ee629

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ trigger at the earliest possible time in the future.
277277

278278
### parallel()
279279

280-
The `parallel(iterable<callable():PromiseInterface<mixed,Exception>> $tasks): PromiseInterface<array<mixed>,Exception>` function can be used
280+
The `parallel(iterable<callable():PromiseInterface<mixed>> $tasks): PromiseInterface<array<mixed>>` function can be used
281281
like this:
282282

283283
```php
@@ -319,7 +319,7 @@ React\Async\parallel([
319319

320320
### series()
321321

322-
The `series(iterable<callable():PromiseInterface<mixed,Exception>> $tasks): PromiseInterface<array<mixed>,Exception>` function can be used
322+
The `series(iterable<callable():PromiseInterface<mixed>> $tasks): PromiseInterface<array<mixed>>` function can be used
323323
like this:
324324

325325
```php
@@ -361,7 +361,7 @@ React\Async\series([
361361

362362
### waterfall()
363363

364-
The `waterfall(iterable<callable(mixed=):PromiseInterface<mixed,Exception>> $tasks): PromiseInterface<mixed,Exception>` function can be used
364+
The `waterfall(iterable<callable(mixed=):PromiseInterface<mixed>> $tasks): PromiseInterface<mixed>` function can be used
365365
like this:
366366

367367
```php

src/functions.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ function coroutine(callable $function, ...$args): PromiseInterface
359359
}
360360

361361
/**
362-
* @param iterable<callable():PromiseInterface<mixed,Exception>> $tasks
363-
* @return PromiseInterface<array<mixed>,Exception>
362+
* @param iterable<callable():PromiseInterface<mixed>> $tasks
363+
* @return PromiseInterface<array<mixed>>
364364
*/
365365
function parallel(iterable $tasks): PromiseInterface
366366
{
@@ -418,8 +418,8 @@ function parallel(iterable $tasks): PromiseInterface
418418
}
419419

420420
/**
421-
* @param iterable<callable():PromiseInterface<mixed,Exception>> $tasks
422-
* @return PromiseInterface<array<mixed>,Exception>
421+
* @param iterable<callable():PromiseInterface<mixed>> $tasks
422+
* @return PromiseInterface<array<mixed>>
423423
*/
424424
function series(iterable $tasks): PromiseInterface
425425
{
@@ -469,8 +469,8 @@ function series(iterable $tasks): PromiseInterface
469469
}
470470

471471
/**
472-
* @param iterable<callable(mixed=):PromiseInterface<mixed,Exception>> $tasks
473-
* @return PromiseInterface<mixed,Exception>
472+
* @param iterable<callable(mixed=):PromiseInterface<mixed>> $tasks
473+
* @return PromiseInterface<mixed>
474474
*/
475475
function waterfall(iterable $tasks): PromiseInterface
476476
{

0 commit comments

Comments
 (0)