Commit 16f20f29 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.

Redo of D13115198

Reviewed By: yfeldblum

Differential Revision: D13396333

fbshipit-source-id: 36df474cab95577b68584099109d94069903090e
parent c5fe286b
...@@ -1163,9 +1163,7 @@ class Future : private futures::detail::FutureBase<T> { ...@@ -1163,9 +1163,7 @@ 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) && { then(F&& func) && = delete;
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