refactor(web): 使用统一的线程池资源,防止浪费
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package com.lanyuanxiaoyao.service.configuration;
|
||||
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
/**
|
||||
* 线程池
|
||||
*
|
||||
* @author lanyuanxiaoyao
|
||||
* @date 2023-06-07
|
||||
*/
|
||||
public class ExecutorProvider {
|
||||
public static final ExecutorService EXECUTORS = Executors.newWorkStealingPool(60);
|
||||
}
|
||||
Reference in New Issue
Block a user