AsyncRun

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.

Method Signature

AsyncRun(callback=[function], executor=[any])

Arguments

Argument
Type
Required
Description
Default

callback

function

true

The code to execute asynchronously, this can be a closure or lambda.

executor

any

false

The executor to use for the asynchronous execution. This can be an instance of an Executor class, or the name of a registered executor in the AsyncService.

Examples

Last updated

Was this helpful?