Skip to content

Commit 22eb216

Browse files
committed
+ executor admin thread name suffix starts at 0
1 parent 88cb431 commit 22eb216

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<modelVersion>4.0.0</modelVersion>
2828
<groupId>io.github.q3769</groupId>
2929
<artifactId>conseq4j</artifactId>
30-
<version>20250314.0.0</version>
30+
<version>20250314.0.2025</version>
3131
<packaging>jar</packaging>
3232
<name>conseq4j</name>
3333
<description>A Java concurrent API to sequence related tasks while concurring unrelated ones</description>

src/main/java/conseq4j/execute/ConseqExecutor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public final class ConseqExecutor implements SequentialExecutor {
5555
* An ExecutorService used for administrative tasks, such as cleaning up completed tasks from the
5656
* activeSequentialTasks map.
5757
*/
58-
private final ExecutorService adminExecutorService = Executors.newThreadPerTaskExecutor(
59-
Thread.ofVirtual().name("conseq-unbounded-admin-vt-", 1).factory());
58+
private final ExecutorService adminExecutorService =
59+
MoreExecutors.newVirtualThreadPerTaskExecutor("conseq-unbounded-admin-vt-");
6060

6161
/**
6262
* The worker thread pool facilitates the overall async execution, independent of the submitted

src/test/java/conseq4j/summon/ConseqServiceFactoryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void concurrencyBoundedByTotalTaskCount() {
7272
void higherConcurrencyRendersBetterThroughput() {
7373
List<SpyingTask> sameTasks = createSpyingTasks(TASK_COUNT);
7474
int lowConcurrency = 2;
75-
int highConcurrency = lowConcurrency * 10;
75+
int highConcurrency = lowConcurrency * 20;
7676

7777
long lowConcurrencyStart;
7878
List<Future<SpyingTask>> lowConcurrencyFutures;

0 commit comments

Comments
 (0)