~smspillaz/folly/folly-git-master

  • Committer: Facebook GitHub Bot
  • Author(s): Aaryaman Sagar
  • Date: 2021-07-15 04:12:12 UTC
  • Revision ID: git-v1:ea91c9bc37bd25f8adfa4652822263f196f2d482
Have collect() handle the case of a not-ready future

Summary:
If one of the input futures is off the end of a folly::Executor::weakRef()
executor, then there is a chance that it may never complete with a value or an
ecception.  In this case, collect() would crash because it assumes that the
folly::Try instances for all input futures have either a value or an exception.

Fix that case by injecting a BrokenPromise exception for the case where a future
never has an exception or a value.

Reviewed By: yfeldblum

Differential Revision: D26989091

fbshipit-source-id: b810fe4d5d071233da1f453b3759991e057d78c6
Filename Latest Rev Last Changed Committer Comment Size
..
.github 7585 4 years ago wez configure github actions CI (#1228) Summary: This Diff
build 4842 6 years ago Adam Simpkins Include fbcode_builder sources in the folly github Diff
CMake 3741 7 years ago Facebook Github Bot Add CMake build system Summary: This is for use o Diff
folly 2 11 years ago Jordan DeLong Pull from FB rev 63ce89e2f2301e6bba44a111cc7d42180 Diff
static 8794 3 years ago Facebook GitHub Bot Add folly logo to repo. Summary: This adds the fo Diff
.gitignore 5288 6 years ago Facebook Github Bot move folly/experimental/logging to folly/logging/ 556 bytes Diff Download File
.projectid 8825 3 years ago Facebook GitHub Bot add a top-level build.sh to build folly via getdep 6 bytes Diff Download File
.travis.yml 9723 2 years ago Facebook GitHub Bot Missing cmake cache variables (#1090) Summary: Pu 1.8 KB Diff Download File
build.bat 8825 3 years ago Facebook GitHub Bot add a top-level build.sh to build folly via getdep 987 bytes Diff Download File
File build.sh 8825 3 years ago Facebook GitHub Bot add a top-level build.sh to build folly via getdep 1 KB Diff Download File
CMakeLists.txt 9680 3 years ago Facebook GitHub Bot guard every file requiring elf/dwarf (#1524) Summ 35.9 KB Diff Download File
CODE_OF_CONDUCT.md 7530 4 years ago Facebook Github Bot Adopt Contributor Covenant Summary: In order to f 3.2 KB Diff Download File
CONTRIBUTING.md 4893 6 years ago Facebook Github Bot Add `CONTRIBUTING` and `CODE_OF_CONDUCT` Summary: 1.2 KB Diff Download File
LICENSE 6531 5 years ago Facebook Github Bot import farmhash Summary: This diff imports farmha 11 KB Diff Download File
README.md 9478 3 years ago Facebook GitHub Bot Remove broken github status badges from folly READ 9.3 KB Diff Download File