awaitShutdown
Blocks the current thread until the status is set to SHUTDOWN.
This will wait indefinitely, specify a duration if you want a timeout.
Unless shutdownNow has been used, the shutdown time depends on the amount of requests queued in JDA, and the amount of tasks submitted to the various executors.
Return
Always true
Blocks the current thread until the status is set to SHUTDOWN, or until the timeout has been reached.
Unless shutdownNow has been used, the shutdown time depends on the amount of requests queued in JDA, and the amount of tasks submitted to the various executors.
Return
true if the shutdown finished before the timeout, false if the timeout was reached