FutureNew
Last updated
Last updated
Create a new BoxFuture object.
Argument | Type | Required | Description | Default |
---|---|---|---|---|
value
any
false
If passed, the value to set on the BoxFuture object as completed or it can be a lambda/closure that will provide the value and it will be executed asynchronously, or it can be a native Java CompletableFuture
executor
any
false
The executor to use for the BoxFuture object. By default, the BoxFuture object will use the default executor (ForkJoinPool.commonPool()). This can be the name of a named executor or a custom executor object.