Thread
The thread component enables multithreaded programming in BoxLang.
Component Signature
Attributes
Atrribute | Type | Required | Description | Default |
---|---|---|---|---|
|
|
| The name of the thread. | |
|
|
| The action to perform. The default value is "run". The following are the possible values: "join", "run", "sleep", "terminate". |
|
|
|
| The number of milliseconds to pause the thread. This attribute is required if the action attribute is set to "sleep". |
|
|
|
| The priority of the thread. The default value is "normal". The following are the possible values: "high", "low", "normal". |
|
|
|
| The number of milliseconds to wait for the thread to finish. If the thread does not finish within the specified time, the thread is terminated. If the timeout attribute is not specified, the thread runs until it finishes. |
Examples
Last updated