AnonymousVirtualExecutor
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
//package org.redkale.util;
|
||||
//
|
||||
//import java.util.concurrent.*;
|
||||
//import java.util.concurrent.atomic.AtomicInteger;
|
||||
//import java.util.function.Function;
|
||||
//
|
||||
///**
|
||||
@@ -16,11 +15,10 @@
|
||||
// @Override
|
||||
// public ExecutorService apply(String threadNameFormat) {
|
||||
// final ThreadFactory factory = Thread.ofVirtual().factory();
|
||||
// final AtomicInteger counter = new AtomicInteger();
|
||||
// final String threadName = String.format(threadNameFormat, "Virtual");
|
||||
// return Executors.newThreadPerTaskExecutor(r -> {
|
||||
// Thread t = factory.newThread(r);
|
||||
// int c = counter.incrementAndGet();
|
||||
// t.setName(String.format(threadNameFormat, "Virtual-" + (c < 10 ? ("00" + c) : (c < 100 ? ("0" + c) : c))));
|
||||
// t.setName(threadName);
|
||||
// return t;
|
||||
// });
|
||||
// }
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user