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

Remove .then from FutureSplitter

Summary: To allow deprecation, remove use cases of Future::then inside FutureSplitter.h

Reviewed By: yfeldblum

Differential Revision: D9995264

fbshipit-source-id: d44c63c45a08ca675b9bff33fabcbb2836ea2a64
parent 372025a2
......@@ -53,7 +53,7 @@ class FutureSplitter {
: promise_(std::make_shared<SharedPromise<T>>()),
e_(getExecutorFrom(future)),
priority_(future.getPriority()) {
std::move(future).then([promise = promise_](Try<T>&& theTry) {
std::move(future).thenTry([promise = promise_](Try<T>&& theTry) {
promise->setTry(std::move(theTry));
});
}
......
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