Async Pipelines & Futures
To The Future with ColdBox Futures
Creation Methods
/**
* Create a new ColdBox future backed by a Java completable future
*
* @value The actual closure/lambda/udf to run with or a completed value to seed the future with
* @executor A custom executor to use with the future, else use the default
* @debug Add debugging to system out or not, defaults is false
* @loadAppContext Load the CFML engine context into the async threads or not, default is yes.
*
* @return ColdBox Future completed or new
*/
Future function newFuture(
any value,
any executor,
boolean debug = false,
boolean loadAppContext = true
)
/**
* Create a completed ColdBox future backed by a Java Completable Future
*
* @value The value to complete the future with
* @debug Add debugging to system out or not, defaults is false
* @loadAppContext Load the CFML engine context into the async threads or not, default is yes.
*
* @return ColdBox Future completed
*/
Future function newCompletedFuture(
required any value,
boolean debug = false,
boolean loadAppContext = true
)Usage
ColdFusion (CFML) App Context
Completed Futures
Usage Methods
Execution Status
Getting Values
Future Pipelines
Cancelling Futures
Exceptions
Combining Futures
Composing Futures
Was this helpful?