mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +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 |
||
---|---|---|
.. | ||
benchharness | ||
config | ||
fuse | ||
inodes | ||
journal | ||
model | ||
monitor | ||
rocksdb | ||
service | ||
sqlite | ||
store | ||
takeover | ||
telemetry | ||
testharness | ||
utils | ||
win | ||
CMakeLists.txt |