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 |
||
---|---|---|
.. | ||
benchmarks | ||
cli | ||
docs | ||
fs | ||
integration | ||
locale | ||
py | ||
scm | ||
scripts | ||
test_support | ||
test-data | ||
third-party | ||
win | ||
.gitignore | ||
Eden.project.toml |