Method StopThread
StopThread(ThreadProc, bool)
When implemented in a class, aborts executing action in thread.
void StopThread(ThreadProc action, bool wait)
Parameters
action
ThreadProcSpecifies action to abort.
wait
boolSpecifies whether calling application should wait for background thread to finish execution.