mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
c5f4ea6f8b
Summary: Remove the `FuseChannel::getSessionCompleteFuture()` method and instead have `initialize()` and `initializeFromTakeover()` return the `Future` that can be used to wait on session completion. This makes it explicit from an API perspective that this session completion future will only be invoked if initialization is successful. It also eliminates the possibility of anyone calling getSessionCompleteFuture() more than once. I also changed the session completion future to use a folly::SemiFuture rather than a folly::Future, to make it explicit that callers generally should not execute their callback inline in the same thread where the SemiFuture is fulfilled. Reviewed By: chadaustin Differential Revision: D7297835 fbshipit-source-id: 3a1157951f0738f1692833ed5e875c3e9c6d6d69 |
||
---|---|---|
.. | ||
privhelper | ||
test | ||
BufVec.cpp | ||
BufVec.h | ||
DirHandle.h | ||
DirList.cpp | ||
DirList.h | ||
Dispatcher.cpp | ||
Dispatcher.h | ||
EdenStats.cpp | ||
EdenStats.h | ||
FileHandle.cpp | ||
FileHandle.h | ||
FileHandleBase.cpp | ||
FileHandleBase.h | ||
FileHandleMap.cpp | ||
FileHandleMap.h | ||
FuseChannel.cpp | ||
FuseChannel.h | ||
FuseTypes.cpp | ||
FuseTypes.h | ||
handlemap.thrift | ||
PollHandle.cpp | ||
PollHandle.h | ||
RequestData.cpp | ||
RequestData.h |