IsThreadInterrupted
Verifies if the current thread is interrupted or not.
You can also pass in a thread name to check if that thread is interrupted.
Example:
if ( !IsThreadInterrupted() ) {
// Do work
}
Method Signature
IsThreadInterrupted(name=[string])Arguments
Argument
Type
Required
Description
Default
name
string
false
The name of the thread to check or empty for the current thread.
Examples
Check if the current thread has been interrupted
interrupted = isThreadInterrupted();
writeOutput( isBoolean( interrupted ) );
Result: false
Returns false for a normal running thread
Result: false
Related
Last updated
Was this helpful?
