|
129 | 129 | * For more details on the promise primitives, please refer to the |
130 | 130 | * [Promise documentation](https://github.com/reactphp/promise#functions). |
131 | 131 | * |
132 | | - * @param PromiseInterface<mixed, \Throwable|mixed> $promise |
| 132 | + * @param PromiseInterface<mixed> $promise |
133 | 133 | * @param float $time |
134 | 134 | * @param ?LoopInterface $loop |
135 | | - * @return PromiseInterface<mixed, TimeoutException|\Throwable|mixed> |
| 135 | + * @return PromiseInterface<mixed> |
136 | 136 | */ |
137 | 137 | function timeout(PromiseInterface $promise, $time, LoopInterface $loop = null) |
138 | 138 | { |
@@ -219,7 +219,7 @@ function timeout(PromiseInterface $promise, $time, LoopInterface $loop = null) |
219 | 219 | * |
220 | 220 | * @param float $time |
221 | 221 | * @param ?LoopInterface $loop |
222 | | - * @return PromiseInterface<void, \RuntimeException> |
| 222 | + * @return PromiseInterface<void> |
223 | 223 | */ |
224 | 224 | function sleep($time, LoopInterface $loop = null) |
225 | 225 | { |
@@ -275,7 +275,7 @@ function sleep($time, LoopInterface $loop = null) |
275 | 275 | * |
276 | 276 | * @param float $time |
277 | 277 | * @param ?LoopInterface $loop |
278 | | - * @return PromiseInterface<float, \RuntimeException> |
| 278 | + * @return PromiseInterface<float> |
279 | 279 | * @deprecated 1.8.0 See `sleep()` instead |
280 | 280 | * @see sleep() |
281 | 281 | */ |
@@ -318,7 +318,7 @@ function resolve($time, LoopInterface $loop = null) |
318 | 318 | * |
319 | 319 | * @param float $time |
320 | 320 | * @param LoopInterface $loop |
321 | | - * @return PromiseInterface<void, TimeoutException|\RuntimeException> |
| 321 | + * @return PromiseInterface<void> |
322 | 322 | * @deprecated 1.8.0 See `sleep()` instead |
323 | 323 | * @see sleep() |
324 | 324 | */ |
|
0 commit comments