Skip to content

Commit 178328d

Browse files
committed
Change method name (awaitEventExecutor -> awaitTermination)
1 parent 8abfe11 commit 178328d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/lamgc/utils/event/EventExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public int executor(EventHandler handler, EventObject eventObject){
143143
* @return 如果在设置时间内线程池任务执行完成并关闭返回true, 否则返回false.
144144
* @throws InterruptedException 当发生中断时抛出
145145
*/
146-
public boolean awaitEventExecutor(long timeout, TimeUnit unit) throws InterruptedException {
146+
public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException {
147147
return threadPoolExecutor.awaitTermination(timeout, unit);
148148
}
149149

0 commit comments

Comments
 (0)