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

Remove thenValue from map that needs to be generic

Summary: Went a step too far removing then from inside Future-inl.h. Map needs to be generic over value/try. Just remove that change for now.

Reviewed By: yfeldblum

Differential Revision: D10002565

fbshipit-source-id: c37f744d47f9dd123114b6b62c1c832519cb4f8e
parent ac009d2f
......@@ -2332,7 +2332,7 @@ std::vector<Future<Result>> map(It first, It last, F func) {
std::vector<Future<Result>> results;
results.reserve(std::distance(first, last));
for (auto it = first; it != last; it++) {
results.push_back(std::move(*it).thenValue(func));
results.push_back(std::move(*it).then(func));
}
return results;
}
......@@ -2342,7 +2342,7 @@ std::vector<Future<Result>> map(Executor& exec, It first, It last, F func) {
std::vector<Future<Result>> results;
results.reserve(std::distance(first, last));
for (auto it = first; it != last; it++) {
results.push_back(std::move(*it).via(&exec).thenValue(func));
results.push_back(std::move(*it).via(&exec).then(func));
}
return results;
}
......
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