Commit 293afa64 authored by Lee Howes's avatar Lee Howes Committed by Facebook Github Bot

Add explicit deprecation to delayedUnsafe

Summary: Deprecate delayedUnsafe to stop people adding it to code.

Reviewed By: yfeldblum

Differential Revision: D13949215

fbshipit-source-id: ffc4eec113964a0b247f16f3c37f3f8c69fbb0df
parent 373e67af
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment