Class Thread
java.lang.Object
ortus.boxlang.runtime.components.Component
ortus.boxlang.runtime.components.async.Thread
-
Nested Class Summary
Nested classes/interfaces inherited from class ortus.boxlang.runtime.components.Component
Component.BodyResult, Component.ComponentBody -
Field Summary
Fields inherited from class ortus.boxlang.runtime.components.Component
componentService, declaredAttributes, DEFAULT_RETURN, functionService, interceptorService, logger, name, runtime -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_invoke(IBoxContext context, IStruct attributes, Component.ComponentBody body, IStruct executionState) The thread component enables multithreaded programming in BoxLang.Methods inherited from class ortus.boxlang.runtime.components.Component
announce, getDeclaredAttributes, getName, invoke, processBody, processBody, setName, validateAttributes
-
Constructor Details
-
Thread
public Thread()Constructor
-
-
Method Details
-
_invoke
public Component.BodyResult _invoke(IBoxContext context, IStruct attributes, Component.ComponentBody body, IStruct executionState) The thread component enables multithreaded programming in BoxLang. Threads are independent streams of execution, and multiple threads on a page can execute simultaneously and asynchronously, letting you perform asynchronous processing. Code within the thread component body executes on a separate thread while the request thread continues processing without waiting for the thread body to finish. You use this tag to run or end a thread, temporarily stop thread execution, or join together multiple threads.
-