forked from com-lihaoyi/mill
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented
AutoCloseable
Workers (com-lihaoyi#1781)
The idea is, to automatically call the `java.lang.AutoCloseable.close()` method on workers than gets dropped, to provide a chance to clean up and free resources. I also applied some minor improvements on the go. E.g. synchronized access to `Evaluator.workerCache` now synchronizes on the `workerCache`, not on the `Evaluator` instance. I also added test cases to test `AutoCloseable` workers, sequentially and parallel. Updated documentation. This PR implements this idea: * com-lihaoyi#1780 Pull request: com-lihaoyi#1781
- Loading branch information
Showing
4 changed files
with
262 additions
and
88 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
Oops, something went wrong.