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 @@ -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
281281like 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
323323like 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
365365like this:
366366
367367``` php
Original file line number Diff line number Diff 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 */
365365function 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 */
424424function 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 */
475475function waterfall (iterable $ tasks ): PromiseInterface
476476{
You can’t perform that action at this time.
0 commit comments