awaitTermination
Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.
Return
true if this executor terminated and false if the timeout elapsed before termination
Parameters
timeout
the maximum time to wait
unit
the time unit of the timeout argument
Throws
if interrupted while waiting