Class AsyncRun

java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.async.AsyncRun

@BoxBIF @BoxBIF(alias="RunAsync") public class AsyncRun extends BIF
  • Constructor Details

    • AsyncRun

      public AsyncRun()
      Constructor
  • Method Details

    • _invoke

      public Object _invoke(IBoxContext context, ArgumentsScope arguments)
      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:
      _invoke in class BIF
      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.