You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ Timer\timeout(…);
47
47
48
48
### timeout()
49
49
50
-
The `timeout(PromiseInterface<mixed, Throwable|mixed> $promise, float $time, ?LoopInterface $loop = null): PromiseInterface<mixed, TimeoutException|Throwable|mixed>` function can be used to
50
+
The `timeout(PromiseInterface<mixed> $promise, float $time, ?LoopInterface $loop = null): PromiseInterface<mixed>` function can be used to
51
51
cancel operations that take *too long*.
52
52
53
53
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
171
171
172
172
### sleep()
173
173
174
-
The `sleep(float $time, ?LoopInterface $loop = null): PromiseInterface<void, RuntimeException>` function can be used to
174
+
The `sleep(float $time, ?LoopInterface $loop = null): PromiseInterface<void>` function can be used to
175
175
create a new promise that resolves in `$time` seconds.
176
176
177
177
```php
@@ -205,7 +205,7 @@ $timer->cancel();
205
205
206
206
> Deprecated since v1.8.0, see [`sleep()`](#sleep) instead.
207
207
208
-
The `resolve(float $time, ?LoopInterface $loop = null): PromiseInterface<float, RuntimeException>` function can be used to
208
+
The `resolve(float $time, ?LoopInterface $loop = null): PromiseInterface<float>` function can be used to
209
209
create a new promise that resolves in `$time` seconds with the `$time` as the fulfillment value.
210
210
211
211
```php
@@ -239,7 +239,7 @@ $timer->cancel();
239
239
240
240
> Deprecated since v1.8.0, see [`sleep()`](#sleep) instead.
241
241
242
-
The `reject(float $time, ?LoopInterface $loop = null): PromiseInterface<void, TimeoutException|RuntimeException>` function can be used to
242
+
The `reject(float $time, ?LoopInterface $loop = null): PromiseInterface<void>` function can be used to
243
243
create a new promise which rejects in `$time` seconds with a `TimeoutException`.
0 commit comments