Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@
* For more details on the promise primitives, please refer to the
* [Promise documentation](https://github.com/reactphp/promise#functions).
*
* @param PromiseInterface<mixed, \Throwable|mixed> $promise
* @param PromiseInterface<mixed> $promise
* @param float $time
* @param ?LoopInterface $loop
* @return PromiseInterface<mixed, TimeoutException|\Throwable|mixed>
* @return PromiseInterface<mixed>
*/
function timeout(PromiseInterface $promise, $time, LoopInterface $loop = null)
{
Expand Down Expand Up @@ -219,7 +219,7 @@ function timeout(PromiseInterface $promise, $time, LoopInterface $loop = null)
*
* @param float $time
* @param ?LoopInterface $loop
* @return PromiseInterface<void, \RuntimeException>
* @return PromiseInterface<void>
*/
function sleep($time, LoopInterface $loop = null)
{
Expand Down Expand Up @@ -275,7 +275,7 @@ function sleep($time, LoopInterface $loop = null)
*
* @param float $time
* @param ?LoopInterface $loop
* @return PromiseInterface<float, \RuntimeException>
* @return PromiseInterface<float>
* @deprecated 1.8.0 See `sleep()` instead
* @see sleep()
*/
Expand Down Expand Up @@ -318,7 +318,7 @@ function resolve($time, LoopInterface $loop = null)
*
* @param float $time
* @param LoopInterface $loop
* @return PromiseInterface<void, TimeoutException|\RuntimeException>
* @return PromiseInterface<void>
* @deprecated 1.8.0 See `sleep()` instead
* @see sleep()
*/
Expand Down