File tree Expand file tree Collapse file tree 3 files changed +8
-33
lines changed
main/java/conseq4j/execute Expand file tree Collapse file tree 3 files changed +8
-33
lines changed Original file line number Diff line number Diff line change 2727 <modelVersion >4.0.0</modelVersion >
2828 <groupId >io.github.q3769</groupId >
2929 <artifactId >conseq4j</artifactId >
30- <version >20230922.20230924.20240516 </version >
30+ <version >20230922.20230924.20240521 </version >
3131 <packaging >jar</packaging >
3232 <name >conseq4j</name >
3333 <description >A Java concurrent API to sequence related tasks while concurring unrelated ones</description >
186186 <dependency >
187187 <groupId >org.junit.jupiter</groupId >
188188 <artifactId >junit-jupiter-api</artifactId >
189- <version >5.9.3 </version >
189+ <version >5.10.2 </version >
190190 <scope >test</scope >
191191 </dependency >
192192 <dependency >
193193 <groupId >org.junit.jupiter</groupId >
194194 <artifactId >junit-jupiter-params</artifactId >
195- <version >5.9.3 </version >
195+ <version >5.10.2 </version >
196196 <scope >test</scope >
197197 </dependency >
198198 <dependency >
199199 <groupId >org.junit.jupiter</groupId >
200200 <artifactId >junit-jupiter-engine</artifactId >
201- <version >5.9.3 </version >
201+ <version >5.10.2 </version >
202202 <scope >test</scope >
203203 </dependency >
204204 <dependency >
221221 <dependency >
222222 <groupId >io.github.q3769</groupId >
223223 <artifactId >coco4j</artifactId >
224- <version >10.0 .0</version >
224+ <version >10.1 .0</version >
225225 </dependency >
226226 </dependencies >
227227 <properties >
Original file line number Diff line number Diff line change 2727import static coco4j .Tasks .callUnchecked ;
2828
2929import coco4j .DefensiveFuture ;
30+ import coco4j .ThreadFactories ;
3031import conseq4j .Terminable ;
3132import java .util .List ;
3233import java .util .Map ;
4748@ ToString
4849public final class ConseqExecutor implements SequentialExecutor , Terminable , AutoCloseable {
4950 private static final int DEFAULT_WORKER_CONCURRENCY = Runtime .getRuntime ().availableProcessors ();
50- private static final int ADMIN_WORKER_CONCURRENCY =
51- Math .max (1 , Runtime .getRuntime ().availableProcessors () / 2 );
52- private final ExecutorService adminService = Executors .newWorkStealingPool (ADMIN_WORKER_CONCURRENCY );
51+ private final ExecutorService adminService =
52+ Executors .newCachedThreadPool (ThreadFactories .newPlatformThreadFactory ("conseq4j-admin" ));
5353 private final Map <Object , CompletableFuture <?>> activeSequentialTasks = new ConcurrentHashMap <>();
5454 /**
5555 * The worker thread pool facilitates the overall async execution, independent of the submitted tasks. Any thread
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments