mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix code
This commit is contained in:
parent
637e1942f9
commit
f4d357971b
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user