Skip to content

Commit

Permalink
Re-introduce line break
Browse files Browse the repository at this point in the history
  • Loading branch information
dantleech committed Mar 28, 2020
1 parent 29942d1 commit 3fa7ede
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions lib/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
*
* @template TReturn
*
* @param callable(mixed ...$args):(\Generator<mixed,Promise|ReactPromise|array<array-key, Promise|ReactPromise>,mixed,Promise<TReturn>|ReactPromise|TReturn>|Promise<TReturn>|ReactPromise|TReturn) $callback
* @param callable(mixed ...$args):(\Generator<mixed,Promise|ReactPromise|array<array-key, Promise|ReactPromise>,mixed,Promise<TReturn>|ReactPromise|TReturn>|Promise<TReturn>|ReactPromise|TReturn)
* $callback
*
* @return callable(mixed ...$args):Promise<TReturn>
*
Expand Down Expand Up @@ -54,13 +55,6 @@ function asyncCoroutine(callable $callback): callable
* Calls the given function, always returning a promise. If the function returns a Generator, it will be run as a
* coroutine. If the function throws, a failed promise will be returned.
*
* @template TReturn
*
* @param callable(mixed ...$args):(\Generator<mixed,Promise|ReactPromise|array<array-key, Promise|ReactPromise>,mixed,Promise<TReturn>|ReactPromise|TReturn>|Promise<TReturn>|ReactPromise|TReturn)
* $callback
* @param mixed ...$args Arguments to pass to the function.
*
* @return Promise<TReturn>
*/
function call(callable $callback, ...$args): Promise
{
Expand Down Expand Up @@ -89,11 +83,6 @@ function call(callable $callback, ...$args): Promise
* Calls the given function. If the function returns a Generator, it will be run as a coroutine. If the function
* throws or returns a failing promise, the failure is forwarded to the loop error handler.
*
* @template TReturn
*
* @param callable(mixed ...$args):(\Generator<mixed,Promise|ReactPromise|array<array-key, Promise|ReactPromise>,mixed,Promise<TReturn>|ReactPromise|TReturn>|Promise<TReturn>|ReactPromise|TReturn)
* $callback
* @param mixed ...$args
*
* @return void
*
Expand Down

0 comments on commit 3fa7ede

Please sign in to comment.