Skip to content

Conversation

aprudhomme
Copy link
Contributor

Give the options for any thread pool to be configured with the useVirtualThreads option (default: false). When this is set to true, all other thread pool configuration is ignored, and the ExecutorService is created using Executors.newVirtualThreadPerTaskExecutor().

The implementation is package private, so it is hard to extract out metics. I have wrapped the service for metric collection. Currently, only the total task count is exposed.

Some of the tests were generated with AI.

@aprudhomme aprudhomme requested a review from sarthakn7 June 28, 2025 00:34
@aprudhomme aprudhomme merged commit 9577334 into Yelp:main Aug 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants