Open
Description
@OverRide
public void close() throws IOException {
if (executors != null) {
executors.shutdownNow();
executors = null;
}
}
关闭的是线程资源,Closeable针对的是IO资源,只能抛出 IOException,AutoCloseable是通用的资源,可以抛出Exception
Metadata
Metadata
Assignees
Labels
No labels