Commit 5de46e43 authored by Cameron Pickett's avatar Cameron Pickett Committed by Facebook Github Bot

Remove superfluous template type from Future::then

Summary: The template type here seems unnecessary, since the rest of the APIs refer to `folly::Executor` and not a template typename `Executor`

Reviewed By: LeeHowes

Differential Revision: D9695862

fbshipit-source-id: 26d4ddb6fe09454f037fcf1f5417add062e8371f
parent 4b17db44
......@@ -1219,7 +1219,7 @@ class Future : private futures::detail::FutureBase<T> {
/// - Calling code should act as if `valid() == false`,
/// i.e., as if `*this` was moved into RESULT.
/// - `RESULT.valid() == true`
template <class Executor, class Arg, class... Args>
template <class Arg, class... Args>
auto then(Executor* x, Arg&& arg, Args&&... args) && {
auto oldX = this->getExecutor();
this->setExecutor(x);
......@@ -1228,7 +1228,7 @@ class Future : private futures::detail::FutureBase<T> {
.via(oldX);
}
template <class Executor, class Arg, class... Args>
template <class Arg, class... Args>
[[deprecated(
"must be rvalue-qualified, e.g., std::move(future).then(...)")]] auto
then(Executor* x, Arg&& arg, Args&&... args) & = delete;
......
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