mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
a759b25b7d
Summary: Part of the larger project to modify Future<T>::then to be r-value qualified and use Future<T>::thenTry or Future<T>::thenValue. The goal is to disambiguate folly::Future and to improve type and lifetime safety of Future and its methods. Codemod: future<T>.then(callable with operator()(not-a-try)) to future<T>.thenValue(callable with operator()(not-a-try)). future<T>.then(callable with operator()()) to future<T>.thenValue(callable with operator()(auto&&)). future<T>.then(callable with operator()(auto)) to future<T>.thenValue(callable with operator()(auto)). future<T>.then(callable with operator()(folly::Try<T>)) to future<T>.thenTry(callable) Reviewed By: Orvid Differential Revision: D10227086 fbshipit-source-id: 1bb31c91cc65e28291e39302627f97801bfde15c |
||
---|---|---|
.. | ||
test | ||
CMakeLists.txt | ||
takeover.thrift | ||
TakeoverClient.cpp | ||
TakeoverClient.h | ||
TakeoverData.cpp | ||
TakeoverData.h | ||
TakeoverHandler.h | ||
TakeoverServer.cpp | ||
TakeoverServer.h |