This commit is contained in:
Looly 2020-11-05 11:53:42 +08:00
parent 637e1942f9
commit f4d357971b

View File

@ -144,7 +144,7 @@ public class ThreadUtil {
* @param isDaemon 是否守护线程守护线程会在主线程结束后自动结束 * @param isDaemon 是否守护线程守护线程会在主线程结束后自动结束
* @return 执行的方法体 * @return 执行的方法体
*/ */
public static Runnable execAsync(final Runnable runnable, boolean isDaemon) { public static Runnable execAsync(Runnable runnable, boolean isDaemon) {
Thread thread = new Thread(runnable); Thread thread = new Thread(runnable);
thread.setDaemon(isDaemon); thread.setDaemon(isDaemon);
thread.start(); thread.start();