He-Pin commented on code in PR #1299:
URL: https://github.com/apache/pekko/pull/1299#discussion_r1676800520
##########
actor/src/main/resources/reference.conf:
##########
@@ -539,6 +540,19 @@ pekko {
allow-core-timeout = on
}
+ # This will be used if you have set "executor = "virtual-thread-executor"
+ # This executor will execute the every task on a new virtual thread.
+ # Underlying thread pool implementation is
java.util.concurrent.ForkJoinPool for JDK <= 22
+ # If the current runtime does not support virtual thread,
+ # then the executor configured in "fallback" will be used.
+ virtual-thread-executor {
+ #Please set the the underlying pool with system properties below:
+ #jdk.virtualThreadScheduler.parallelism
Review Comment:
Yes, but that will need to create a dedicated fork-join pool with a new
factory for the `CarrierThread`( but which lives in java.internal.misc`... we
have that internal but not sure if that's a good idea for an opensource project.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]