-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sdk] Optimize Task memory usage after completion
- when the task is done, remove references to callable and complete hooks so that the GC can sweep them - add try-catch safeguard around completion hook calls - reduce default capabity of toRunWhenComplete (usually only 1 or 2 hooks are employed) - use protected method done() instead of set(V) for calling complete hooks as well as the clean-up - no raw types
- Loading branch information
Showing
1 changed file
with
20 additions
and
7 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