threadTerminate

Terminates the thread specified by the threadName parameter.

threadTerminate(threadname) → returns void

Argument Reference

threadname string
Required

Thread to be terminated

Compatibility

ColdFusion:

Version 9+ Still listed by getFunctionList() in ColdFusion 2025, but calling it throws "Method ThreadTerminate no longer supported." Use interruptThread() instead.

Lucee:

In Lucee the default for threadname parameter is "run" and the terminated thread scope will have an error object included after termination.

Examples
Sample code invoking the threadTerminate function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub