diff --git a/README.md b/README.md index 1e49806..5c13bc5 100644 --- a/README.md +++ b/README.md @@ -277,7 +277,7 @@ trigger at the earliest possible time in the future. ### parallel() -The `parallel(iterable> $tasks): PromiseInterface,Exception>` function can be used +The `parallel(iterable> $tasks): PromiseInterface>` function can be used like this: ```php @@ -319,7 +319,7 @@ React\Async\parallel([ ### series() -The `series(iterable> $tasks): PromiseInterface,Exception>` function can be used +The `series(iterable> $tasks): PromiseInterface>` function can be used like this: ```php @@ -361,7 +361,7 @@ React\Async\series([ ### waterfall() -The `waterfall(iterable> $tasks): PromiseInterface` function can be used +The `waterfall(iterable> $tasks): PromiseInterface` function can be used like this: ```php diff --git a/src/functions.php b/src/functions.php index 8039266..28c16d0 100644 --- a/src/functions.php +++ b/src/functions.php @@ -359,8 +359,8 @@ function coroutine(callable $function, ...$args): PromiseInterface } /** - * @param iterable> $tasks - * @return PromiseInterface,Exception> + * @param iterable> $tasks + * @return PromiseInterface> */ function parallel(iterable $tasks): PromiseInterface { @@ -418,8 +418,8 @@ function parallel(iterable $tasks): PromiseInterface } /** - * @param iterable> $tasks - * @return PromiseInterface,Exception> + * @param iterable> $tasks + * @return PromiseInterface> */ function series(iterable $tasks): PromiseInterface { @@ -469,8 +469,8 @@ function series(iterable $tasks): PromiseInterface } /** - * @param iterable> $tasks - * @return PromiseInterface + * @param iterable> $tasks + * @return PromiseInterface */ function waterfall(iterable $tasks): PromiseInterface {