diff --git a/folly/futures/Future.h b/folly/futures/Future.h index a96ae514ca9444160031b1d46213d22a6a921169..1148f32534ba4749ed5c4683444bdd9a61897da4 100644 --- a/folly/futures/Future.h +++ b/folly/futures/Future.h @@ -1624,9 +1624,14 @@ class Future : private futures::detail::FutureBase<T> { /// Delay the completion of this Future for at least this duration from /// now. The optional Timekeeper is as with futures::sleep(). - /// NOTE: Deprecated /// WARNING: Returned future may complete on Timekeeper thread. - Future<T> delayedUnsafe(Duration, Timekeeper* = nullptr); + // clang-format off + [[deprecated( + "Continuation may compelete on Timekeeper thread. " + "Please use delayed instead.")]] + Future<T> + delayedUnsafe(Duration, Timekeeper* = nullptr); + // clang-format on /// Blocks until the future is fulfilled. Returns the value (moved-out), or /// throws the exception. The future must not already have a continuation.