Method StopThread
StopThread(ThreadProc, bool)
When implemented in a class, aborts executing asynchronous action.
void StopThread(ThreadProc action, bool discard = false)
Parameters
action
ThreadProcSpecifies action to abort.
discard
boolSpecifies that action needs to be discarded.