Whatever message this page gives is out now! Go check it out!

ThreadTerminate

Last update:
May 18, 2026

Description

Terminates the thread specified by threadName. Behaves same as cfthread action="terminate".

Category

Function syntax

ThreadTerminate(threadName)

See also

History

  • ColdFusion (2025 release) : This function has been removed. Use the InterruptThread function instead.
  • ColdFusion 9: Added this function.

Parameters

ParameterDescription
threadName
The name of the thread to stop.

Usage

Use this function to stop processing of the thread specified in the threadName. If you terminate a thread, the thread scope includes an ERROR metadata structure that provides information about the termination.

Example

<cfscript> 
thread name="t1" 

sleep(3000); 

sleep(1000); 
threadTerminate("t1"); 
sleep(1000); 
</cfscript> 
<cfoutput>Status of the thread = #t1.Status#<br></cfoutput>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page