sapling/eden/fs/takeover
Lee Howes a759b25b7d Future<T>::then Future<T>::then() -> Future<T>::thenValue or thenTry.
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
2018-10-07 17:06:49 -07:00
..
test add integration tests for CLI behavior inside a stale mount 2018-07-27 18:36:55 -07:00
CMakeLists.txt add CMake build files 2018-04-30 14:37:46 -07:00
takeover.thrift don't pass next inode number through thrift 2018-08-23 22:55:21 -07:00
TakeoverClient.cpp Future<T>::then Future<T>::then() -> Future<T>::thenValue or thenTry. 2018-10-07 17:06:49 -07:00
TakeoverClient.h add version handshake to takeover protocol 2018-01-30 14:21:18 -08:00
TakeoverData.cpp add EdenBug::throwException 2018-05-01 16:52:06 -07:00
TakeoverData.h add thrift takeover serialization 2018-01-30 14:21:18 -08:00
TakeoverHandler.h initial code to listen for graceful takeover attempts 2017-11-19 15:47:20 -08:00
TakeoverServer.cpp Future<T>::then 1/n: Future<T>::then(try-task) -> Future<T>::thenTry(task). 2018-07-23 18:51:38 -07:00
TakeoverServer.h initial code to listen for graceful takeover attempts 2017-11-19 15:47:20 -08:00