isThreadInterrupted

Returns true when the named thread has been interrupted. It does not clear the interrupted status.

isThreadInterrupted(threadName) → returns boolean

This function requires Lucee 7.0.2.1 and up.  Not supported on Adobe ColdFusion, etc.

Argument Reference

threadName string
Required

The name of the thread. An error is thrown if no thread with that name is running.

Examples
Sample code invoking the isThreadInterrupted function

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

Fork me on GitHub