shutdownThread()
Overview
public void function shutdownThread(
any thethread
, numeric interruptWait = 10000
, any logger
)
Attempts to gracefully end the given thread, reverting to forceful shutdown if the thread does not shutdown in the given time frame
Arguments
Name | Type | Required | Description |
---|---|---|---|
thethread | any | No | Java object representing the thread to shutdown |
interruptWait | numeric | No (default=10000) | How long, in ms, to wait for the thread to gracefully end before brutally shutting down. |
logger | any | No | Optional logger. If present, will log the attempts to shutdown the thread. |