Skip to content

Commit

Permalink
Enforce r-value use of Future::getVia
Browse files Browse the repository at this point in the history
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
  • Loading branch information
LeeHowes authored and facebook-github-bot committed Sep 13, 2020
1 parent 1d62441 commit 72a5d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion folly/executors/test/ExecutorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ TEST(ManualExecutor, getViaDoesNotDeadlock) {
.via(&west);
std::thread t([&] {
baton.post();
f.getVia(&west);
std::move(f).getVia(&west);
});
baton.wait();
east.run();
Expand Down

0 comments on commit 72a5d49

Please sign in to comment.