mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
0a28623f9a
Summary: folly::collect's Future is completed immediately when any of its input future is completed with an exception. This makes forking off subtasks and then joining with folly::collect dangerous when closures don't hold pointers or references to parameters, including `this`. Introduce a collectSafe function, which has the same signature as folly::collect but unconditionally waits until all futures are completed. Reviewed By: simpkins Differential Revision: D19529772 fbshipit-source-id: b3b493fcbb0d9058d2d6e5c8a064dfdae3a43e57 |
||
---|---|---|
.. | ||
test-data | ||
BenchmarkMain.cpp | ||
BucketedLogTest.cpp | ||
BugTest.cpp | ||
ChronoTest.cpp | ||
ChronoUnitTest.cpp | ||
CMakeLists.txt | ||
CoverageSetTest.cpp | ||
FaultInjectorTest.cpp | ||
FutureTest.cpp | ||
IDGenBenchmark.cpp | ||
IDGenTest.cpp | ||
IoFutureTest.cpp | ||
LazyInitializeTest.cpp | ||
MappedDiskVectorTest.cpp | ||
MemoryTest.cpp | ||
PathFuncsTest.cpp | ||
PathMapTest.cpp | ||
ProcessAccessLogBenchmark.cpp | ||
ProcessAccessLogTest.cpp | ||
ProcessNameCacheBenchmark.cpp | ||
ProcessNameCacheTest.cpp | ||
ProcUtilTest.cpp | ||
ScopedEnvVar.cpp | ||
ScopedEnvVar.h | ||
ServiceAddressTest.cpp | ||
UnixSocketTest.cpp |