mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
6e7b264295
Summary: Overall plan 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)). Reviewed By: chadaustin Differential Revision: D9443286 fbshipit-source-id: be712b58b92dc7422f128713deaf6f46b29b36ce |
||
---|---|---|
.. | ||
cli | ||
docs | ||
fs | ||
hooks | ||
integration | ||
py | ||
scripts | ||
test-data | ||
third-party | ||
win | ||
AUTODEPS | ||
Eden.project.toml |