ThreadTerminate
Terminates the thread specified by the threadName parameter.
Method Signature
ThreadTerminate(threadName=[string])Arguments
Argument
Type
Required
Description
Default
threadName
string
true
The name of the thread to terminate.
Examples
Terminate a thread
future = asyncRun( () => {
sleep( 10000 );
return "never reached";
} );
threadTerminate( future.getThread() );
writeOutput( "terminated" );
Result: terminated
Related
Last updated
Was this helpful?
