DummyTask<T>::take should return T, not T&&
commiteb18d6764f8c5de67e13a0ad566bfeb64eb6695b
authorRick Lavoie <rlavoie@fb.com>
Tue, 15 Mar 2022 17:51:18 +0000 (15 10:51 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 15 Mar 2022 17:51:18 +0000 (15 10:51 -0700)
tree33b54d88d4c50cda226a4e1bce1a9ce85ac058a4
parent9ec88ee8430db6899dfd17e5a9b77172f262f1a9
DummyTask<T>::take should return T, not T&&

Summary:
Returning T&& causes problems with expressions in certain
contexts. Match folly and return a T instead.

Reviewed By: edwinsmith

Differential Revision: D34746253

fbshipit-source-id: bdcc95bfa0aba8e2d7a3bf00cf85fd8c51d9b11e
hphp/util/coro.h