Skip to content

Commit

Permalink
moar threads for the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellblazer committed Jun 8, 2024
1 parent abe662e commit cd287c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class UnsafeExecutors {

public static ExecutorService newVirtualThreadPerTaskExecutor() {
var executor = (ThreadPoolExecutor) Executors.newCachedThreadPool();
executor.setCorePoolSize(Runtime.getRuntime().availableProcessors());
executor.setCorePoolSize(Runtime.getRuntime().availableProcessors() * 2);
executor.prestartAllCoreThreads();
return virtualThreadExecutor(executor);
}
Expand Down

0 comments on commit cd287c2

Please sign in to comment.