mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
5b4a9d3362
Summary: Remove calls to Future::then(executor, callback). This form of Future::then is ambiguous, and does not yet implement the stronger typing of thenValue and thenTry. It is also tempting to use instead of via, where it is not obvious that it has the behaviour of wrapping a via call in a push and pop of the current executor: .pushCurrentExecutor().via(executor).then(callback).popCurrentExecutor(). With the addition of inline continuations, we can instead make the nesting explicit at low cost by making it an inline continuation that launches an asynchronous task on the passed executor. Reviewed By: yfeldblum Differential Revision: D15487604 fbshipit-source-id: 24b83f56c4f3e8843a6ce8339c70ff4794500d5b |
||
---|---|---|
.. | ||
test | ||
CMakeLists.txt | ||
takeover.thrift | ||
TakeoverClient.cpp | ||
TakeoverClient.h | ||
TakeoverData.cpp | ||
TakeoverData.h | ||
TakeoverHandler.h | ||
TakeoverServer.cpp | ||
TakeoverServer.h |