Class AsyncRun
java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.async.AsyncRun
-
Field Summary
Fields inherited from class ortus.boxlang.runtime.bifs.BIF
__functionName, __isMemberExecution, asyncService, cacheService, componentService, declaredArguments, functionService, interceptorService, logger, moduleService, runtime, schedulerService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_invoke(IBoxContext context, ArgumentsScope arguments) Executes the given code asynchronously and returns to you a BoxFuture object which inherits from CompletableFuture.Methods inherited from class ortus.boxlang.runtime.bifs.BIF
announce, getDeclaredArguments, invoke
-
Constructor Details
-
AsyncRun
public AsyncRun()Constructor
-
-
Method Details
-
_invoke
Executes the given code asynchronously and returns to you a BoxFuture object which inherits from CompletableFuture. This way you can create fluent asynchronous code that can be chained and composed.- Specified by:
_invokein classBIF- Parameters:
context- The context in which the BIF is being invoked.arguments- Argument scope for the BIF.- Returns:
- A BoxFuture object that you can use to interact with the asynchronously executed code.
- Throws:
KeyNotFoundException- If the executor name passed is not valid.
-