diff --git a/README.md b/README.md index a87ef94..818bc57 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ Timer\timeout(…); ### timeout() -The `timeout(PromiseInterface $promise, float $time, ?LoopInterface $loop = null): PromiseInterface` function can be used to +The `timeout(PromiseInterface $promise, float $time, ?LoopInterface $loop = null): PromiseInterface` function can be used to cancel operations that take *too long*. You need to pass in an input `$promise` that represents a pending operation @@ -171,7 +171,7 @@ For more details on the promise primitives, please refer to the ### sleep() -The `sleep(float $time, ?LoopInterface $loop = null): PromiseInterface` function can be used to +The `sleep(float $time, ?LoopInterface $loop = null): PromiseInterface` function can be used to create a new promise that resolves in `$time` seconds. ```php @@ -205,7 +205,7 @@ $timer->cancel(); > Deprecated since v1.8.0, see [`sleep()`](#sleep) instead. -The `resolve(float $time, ?LoopInterface $loop = null): PromiseInterface` function can be used to +The `resolve(float $time, ?LoopInterface $loop = null): PromiseInterface` function can be used to create a new promise that resolves in `$time` seconds with the `$time` as the fulfillment value. ```php @@ -239,7 +239,7 @@ $timer->cancel(); > Deprecated since v1.8.0, see [`sleep()`](#sleep) instead. -The `reject(float $time, ?LoopInterface $loop = null): PromiseInterface` function can be used to +The `reject(float $time, ?LoopInterface $loop = null): PromiseInterface` function can be used to create a new promise which rejects in `$time` seconds with a `TimeoutException`. ```php