@@ -249,7 +249,7 @@ function sleep($time, LoopInterface $loop = null)
249
249
}
250
250
251
251
/**
252
- * Create a new promise that resolves in `$time` seconds with the `$time` as the fulfillment value.
252
+ * [Deprecated] Create a new promise that resolves in `$time` seconds with the `$time` as the fulfillment value.
253
253
*
254
254
* ```php
255
255
* React\Promise\Timer\resolve(1.5)->then(function ($time) {
@@ -281,6 +281,8 @@ function sleep($time, LoopInterface $loop = null)
281
281
* @param float $time
282
282
* @param ?LoopInterface $loop
283
283
* @return PromiseInterface<float, \RuntimeException>
284
+ * @deprecated 1.8.0 See `sleep()` instead
285
+ * @see sleep()
284
286
*/
285
287
function resolve ($ time , LoopInterface $ loop = null )
286
288
{
@@ -290,7 +292,7 @@ function resolve($time, LoopInterface $loop = null)
290
292
}
291
293
292
294
/**
293
- * Create a new promise which rejects in `$time` seconds with a `TimeoutException`.
295
+ * [Deprecated] Create a new promise which rejects in `$time` seconds with a `TimeoutException`.
294
296
*
295
297
* ```php
296
298
* React\Promise\Timer\reject(2.0)->then(null, function (React\Promise\Timer\TimeoutException $e) {
@@ -322,6 +324,8 @@ function resolve($time, LoopInterface $loop = null)
322
324
* @param float $time
323
325
* @param LoopInterface $loop
324
326
* @return PromiseInterface<void, TimeoutException|\RuntimeException>
327
+ * @deprecated 1.8.0 See `sleep()` instead
328
+ * @see sleep()
325
329
*/
326
330
function reject ($ time , LoopInterface $ loop = null )
327
331
{
0 commit comments