mirror of
https://gitee.com/jd-platform-opensource/asyncTool.git
synced 2024-12-19 03:30:30 +08:00
用CommonPool替代compleatable,避免大量异步同时执行
This commit is contained in:
parent
52ab114940
commit
6a77b0976d
@ -71,7 +71,7 @@ public class Async {
|
||||
groupCallback = new DefaultGroupCallback();
|
||||
}
|
||||
IGroupCallback finalGroupCallback = groupCallback;
|
||||
CompletableFuture.runAsync(() -> {
|
||||
COMMON_POOL.submit(() -> {
|
||||
try {
|
||||
boolean success = beginWork(timeout, COMMON_POOL, workerWrapper);
|
||||
if (success) {
|
||||
|
Loading…
Reference in New Issue
Block a user