Commit 611dae9a authored by Lee Howes's avatar Lee Howes Committed by Facebook Github Bot

Remove nullary continuation form of then

Summary:
Remove the form of Future::then that could take a continuation with no parameters, to force consistent use of parameters.

This form was already deprecated.

Reviewed By: Orvid

Differential Revision: D10219141

fbshipit-source-id: 4f8bdeaf617d8e78a5c85aa1374f6a0d38d63da9
parent dacf5bc6
...@@ -1178,9 +1178,7 @@ class Future : private futures::detail::FutureBase<T> { ...@@ -1178,9 +1178,7 @@ class Future : private futures::detail::FutureBase<T> {
template <typename F, typename R = futures::detail::callableResult<T, F>> template <typename F, typename R = futures::detail::callableResult<T, F>>
[[deprecated("use thenValue(auto&&) or thenValue(folly::Unit) instead")]] [[deprecated("use thenValue(auto&&) or thenValue(folly::Unit) instead")]]
typename std::enable_if<is_invocable<F>::value, typename R::Return>::type typename std::enable_if<is_invocable<F>::value, typename R::Return>::type
then(F&& func) && { then(F&& func) && = delete;
return this->thenImplementation(std::forward<F>(func), R{});
}
// clang-format off // clang-format off
template <typename F, typename R = futures::detail::callableResult<T, F>> template <typename F, typename R = futures::detail::callableResult<T, F>>
......
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