parent
231f31efaf
commit
b1b049d8df
@ -1,20 +0,0 @@
|
||||
package org.opsli.common.thread;
|
||||
|
||||
import cn.hutool.core.thread.ThreadUtil;
|
||||
|
||||
public class Test {
|
||||
|
||||
public static void main(String[] args) {
|
||||
AsyncProcessExecutor executor = new AsyncProcessExecutorByNormal();
|
||||
for (int i = 0; i < 10000; i++) {
|
||||
int finalI = i;
|
||||
executor.put(()->{
|
||||
ThreadUtil.sleep(1000);
|
||||
System.out.println(finalI);
|
||||
});
|
||||
}
|
||||
boolean execute = executor.execute();
|
||||
System.out.println(execute);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in new issue