@@ -249,7 +249,7 @@ function sleep($time, LoopInterface $loop = null)
249249}
250250
251251/**
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.
253253 *
254254 * ```php
255255 * React\Promise\Timer\resolve(1.5)->then(function ($time) {
@@ -281,6 +281,8 @@ function sleep($time, LoopInterface $loop = null)
281281 * @param float $time
282282 * @param ?LoopInterface $loop
283283 * @return PromiseInterface<float, \RuntimeException>
284+ * @deprecated 1.8.0 See `sleep()` instead
285+ * @see sleep()
284286 */
285287function resolve ($ time , LoopInterface $ loop = null )
286288{
@@ -290,7 +292,7 @@ function resolve($time, LoopInterface $loop = null)
290292}
291293
292294/**
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`.
294296 *
295297 * ```php
296298 * React\Promise\Timer\reject(2.0)->then(null, function (React\Promise\Timer\TimeoutException $e) {
@@ -322,6 +324,8 @@ function resolve($time, LoopInterface $loop = null)
322324 * @param float $time
323325 * @param LoopInterface $loop
324326 * @return PromiseInterface<void, TimeoutException|\RuntimeException>
327+ * @deprecated 1.8.0 See `sleep()` instead
328+ * @see sleep()
325329 */
326330function reject ($ time , LoopInterface $ loop = null )
327331{
0 commit comments