For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Last updated

Was this helpful?