| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Uses the Cleaner API to run LocalContext.remove() when a Thread has terminated, but also eagerly calls all LocalContext.remove() on terminate().
Cleaner is Java 9+, so it cannot be used on JRuby 9 because that is meant to run on Java 8 and up. The disadvantage wrt the Cleaner API is that this will leak a Thread if `terminate()` is never called. At least it's a Daemon Thread so it doesn't keep the JVM from exiting.
| Back | FazBrowse Home | New Git URL |
Re-push of #8483