Commit 72a5d49c authored by Lee Howes's avatar Lee Howes Committed by Facebook GitHub Bot

Enforce r-value use of Future::getVia

Summary:
Fixes across the codebase to allow for r-value qualified getVia.

Change is behaviour neutral - getVia is already destructive internally.

Reviewed By: yfeldblum

Differential Revision: D23605722

fbshipit-source-id: 75dfe6faca1c888eae9b262552372dd557eb6933
parent 1d62441f
...@@ -181,7 +181,7 @@ TEST(ManualExecutor, getViaDoesNotDeadlock) { ...@@ -181,7 +181,7 @@ TEST(ManualExecutor, getViaDoesNotDeadlock) {
.via(&west); .via(&west);
std::thread t([&] { std::thread t([&] {
baton.post(); baton.post();
f.getVia(&west); std::move(f).getVia(&west);
}); });
baton.wait(); baton.wait();
east.run(); east.run();
......
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