Commit 0c30ffa1 authored by 若依's avatar 若依 Committed by Gitee

!354 update ruoyi-common/src/main/java/com/ruoyi/common/utils/Threads.java.

Merge pull request !354 from Remenber_Ray/N/A
parents 0904bf64 17550a5f
...@@ -36,7 +36,7 @@ public class Threads ...@@ -36,7 +36,7 @@ public class Threads
* 停止线程池 * 停止线程池
* 先使用shutdown, 停止接收新任务并尝试完成所有已存在任务. * 先使用shutdown, 停止接收新任务并尝试完成所有已存在任务.
* 如果超时, 则调用shutdownNow, 取消在workQueue中Pending的任务,并中断所有阻塞函数. * 如果超时, 则调用shutdownNow, 取消在workQueue中Pending的任务,并中断所有阻塞函数.
* 如果仍超時,則強制退出. * 如果仍超時,則強制退出.
* 另对在shutdown时线程本身被调用中断做了处理. * 另对在shutdown时线程本身被调用中断做了处理.
*/ */
public static void shutdownAndAwaitTermination(ExecutorService pool) public static void shutdownAndAwaitTermination(ExecutorService pool)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment