Will this cancel the thread if it is currently running?