cfthread / Attribute action

Back to cfthread

General
action
The action to take, one of the following values: join Makes the current thread wait until the thread or threads specified in the name attribute complete processing, or until the period specified in the timeout attribute passes, before continuing processing. If you dont specify a timeout and thread you are joining to doesnt finish, the current thread also cannot finish processing. run Creates a thread and starts it processing. sleep Suspends the current threads processing for the time specified by the duration attribute. This action is useful if one thread must wait for another thread to do processing without joining the threads. terminate Stops processing of the thread specified in the name attribute. If you terminate a thread, the thread scope includes an ERROR metadata structure with information about the termination. (optional, default=run)
ColdFusion
Yes
Adobe ColdFusion 8
The action to take, one of the following values: join Makes the current thread wait until the thread or threads specified in the name attribute complete processing, or until the period specified in the timeout attribute passes, before continuing processing. If you dont specify a timeout and thread you are joining to doesnt finish, the current thread also cannot finish processing. run Creates a thread and starts it processing. sleep Suspends the current threads processing for the time specified by the duration attribute. This action is useful if one thread must wait for another thread to do processing without joining the threads. terminate Stops processing of the thread specified in the name attribute. If you terminate a thread, the thread scope includes an ERROR metadata structure with information about the termination. (optional, default=run)
1
No
String
join, Introduced in Adobe ColdFusion 8
run, Introduced in Adobe ColdFusion 8
sleep, Introduced in Adobe ColdFusion 8
terminate, Introduced in Adobe ColdFusion 8
Open BlueDragon
Yes
The action to perform on the thread(s). Valid options include: "RUN", "JOIN", "SLEEP" and "TERMINATE".
3
No
Lucee
Yes
Railo 3.0
The action to take, one of the following values: - join: Makes the current thread wait until the thread or threads specified in the name attribute complete processing, or until the period specified in the timeout attribute passes, before continuing processing. If you don't specify a timeout and thread you are joining to doesn't finish, the current thread also cannot finish processing. - run: Creates a thread and starts it processing. - sleep: Suspends the current threads processing for the time specified by the duration attribute. This action is useful if one thread must wait for another thread to do processing without joining the threads. - terminate: Stops processing of the thread specified in the name attribute. If you terminate a thread, the thread scope includes an ERROR metadata structure with information about the termination.
8
No
String
run