-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common: ThreadUtil: add support for "fake virtual threads"
We may want to treat platform Threads as virtual ones, so we can test our virtual thread logic on older JVMs, etc. Add corresponding helper methods (which may track "treat as virtual" state via a ThreadLocal, for example), add fallbacks for other cases, and remove UnsupportedOperationException where now no longer applicable.
- Loading branch information
1 parent
4764f85
commit b33b2e3
Showing
2 changed files
with
97 additions
and
19 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