sapling/eden/fs/utils/test
Chad Austin 0a28623f9a add a collectSafe function
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
2020-02-03 11:30:50 -08:00
..
test-data read memory stats from /proc/self/statm instead of /proc/self/status 2019-05-28 12:55:41 -07:00
BenchmarkMain.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
BucketedLogTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
BugTest.cpp refactor the EDEN_BUG() macro 2019-11-22 15:38:33 -08:00
ChronoTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
ChronoUnitTest.cpp Remove dead includes in eden 2019-10-11 16:45:01 -07:00
CMakeLists.txt update license headers in CMake files 2019-06-19 17:02:46 -07:00
CoverageSetTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
FaultInjectorTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
FutureTest.cpp add a collectSafe function 2020-02-03 11:30:50 -08:00
IDGenBenchmark.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
IDGenTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
IoFutureTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
LazyInitializeTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
MappedDiskVectorTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
MemoryTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
PathFuncsTest.cpp Remove dead includes in eden 2019-10-11 16:45:01 -07:00
PathMapTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
ProcessAccessLogBenchmark.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
ProcessAccessLogTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
ProcessNameCacheBenchmark.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
ProcessNameCacheTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
ProcUtilTest.cpp add memory usage statistics to macOS 2019-10-28 11:19:44 -07:00
ScopedEnvVar.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
ScopedEnvVar.h Tidy up license headers 2019-10-11 05:28:23 -07:00
ServiceAddressTest.cpp eden: fix API server failures due to service router disabled sliently 2019-10-22 15:06:47 -07:00
UnixSocketTest.cpp Remove dead includes in eden 2019-10-11 16:45:01 -07:00