cfthread

Overview ColdFusion Open BlueDragon Lucee

Allows threads to be created and controlled.

Available: Yes
End Tag: Yes
Attribute Collection: Yes
Allows any Attribute: No

Attributes

Name Required Type Default Description
action No The action to perform on the thread(s). Valid options include: "RUN", "JOIN", "SLEEP" and "TERMINATE".
duration No How long should this thread sleep for. This attribute is only required if ACTION = "SLEEP".
name No Provide a name for this thread or the names of threads to perform an action on. This is a required attribute when ACTION = "JOIN" or "TERMINATE".
output No If true, data will be stored about the processing of this thread such as how long it took and its status for future reference.
priority No Set this thread execution priority. Valid options include: "HIGH", "NORMAL" and "LOW".
timeout No The time in milliseconds that this thread will wait for other joined threads to finish before proceeding. A value of 0 indicates waiting for all joined threads to finish.