forked from google/guava
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug in AbstractFuture.addListener where we failed to follow the…
… contract precisely. ListenableFuture.addListener says that listeners should execute 'immediately' when the future is done. However, because the old version of addListener only checked the listeners field, it is possible to observe that the future is done and that your listener would not execute immediately. This cl fixes that by adding an explicit check for isDone. RELNOTES=Close a short race where you could observe that an AbstractFuture was done, but that listeners wouldn't execute immediately. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=212281545
- Loading branch information
1 parent
b611718
commit eb3a9f4
Showing
4 changed files
with
162 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters