When a shutdownrequest is received, the current random string is sent back to the client.
在收到关闭请求时,当前的任意字符串将被发送回客户机。
2
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线程将不知道有一个被请求的中断,从而耽误应用程序或服务的关闭。
3
Blocks until all tasks have completed execution after a shutdownrequest, or the timeout occurs, or the current thread is interrupted, whichever happens first.