-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some enhancements for Futures.transform and Futures.catching
* extract a template method and 2 subclasses from CatchingFuture and ChainingListenableFuture. This will allow us to eliminate asAsyncFunction() and 2 allocations per transform * make CatchingFuture implement Runnable and save a Runnable allocation * have CatchingFuture/ChainingListenableFuture clear all their fields on cancel, which should prevent pinning the transformers * have rejectionPropagatingRunnable short circuit for directExecutor() which should save 2 allocations for users who prefer to pass directExecutor() explicitly * have Futures.catching use the rejected execution exception logic when it makes sense #1995 #2013 ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=94954378
- Loading branch information
1 parent
93f2646
commit b1bec6d
Showing
4 changed files
with
394 additions
and
207 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
Oops, something went wrong.