When a shutdown request is received, the current random string is sent back to the client.
在收到关闭请求时,当前的任意字符串将被发送回客户机。
If the task were to swallow the interrupt request, the worker thread might not learn that an interrupt was requested, which could delay the application or service shutdown.
如果任务生吞中断请求,则worker线程将不知道有一个被请求的中断,从而耽误应用程序或服务的关闭。
Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.
阻塞直到所有任务执行完毕。当任意以下情况出现则停止阻塞,以先发生为准:收到关闭请求、超时、线程中断。
应用推荐