Commit 766f412a authored by Lee Howes's avatar Lee Howes Committed by Facebook Github Bot

Remove value-taking form of Future::then

Summary: Explicitly delete the value taking form of folly::Future::then.

Reviewed By: Orvid

Differential Revision: D13115198

fbshipit-source-id: a33246d23ccde8a14d4d70de4f6e0373c006de11
parent 6d2c9612
......@@ -1163,9 +1163,7 @@ class Future : private futures::detail::FutureBase<T> {
[[deprecated("ERROR: use thenValue instead")]] typename std::enable_if<
!is_invocable<F>::value && is_invocable<F, T&&>::value,
typename R::Return>::type
then(F&& func) && {
return std::move(*this).thenValue(std::forward<F>(func));
}
then(F&& func) && = delete;
template <typename F, typename R = futures::detail::callableResult<T, F>>
[[deprecated("ERROR: use thenTry instead")]] typename std::enable_if<
......
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