Commit 4ec869b9 authored by Lee Howes's avatar Lee Howes Committed by Facebook Github Bot

A range of cleanup then to thenValue fixes pending explicit deletion

Summary: Future::then taking a value-taking function is deprecated and being deleted. This cleans up a few more callsites.

Reviewed By: yfeldblum, Orvid

Differential Revision: D13116186

fbshipit-source-id: 9586029a4fa70b438e6cf09861842a5b585da2c5
parent 50a21b1b
......@@ -340,11 +340,11 @@ template <class T>
Future<T> fGen() {
Promise<T> p;
auto f = p.getFuture()
.then([](T&& t) { return std::move(t); })
.then([](T&& t) { return makeFuture(std::move(t)); })
.thenValue([](T&& t) { return std::move(t); })
.thenValue([](T&& t) { return makeFuture(std::move(t)); })
.via(&exe)
.then([](T&& t) { return std::move(t); })
.then([](T&& t) { return makeFuture(std::move(t)); });
.thenValue([](T&& t) { return std::move(t); })
.thenValue([](T&& t) { return makeFuture(std::move(t)); });
p.setValue(T());
return 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