Commit c5fe286b authored by Yuntong Wang's avatar Yuntong Wang Committed by Facebook Github Bot

Revert D13115198: [folly] Remove value-taking form of Future::then

Differential Revision:
D13115198

Original commit changeset: a33246d23ccd

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