FutureNew
Create a new BoxFuture object.
Method Signature
Arguments
Argument | Type | Required | Description | Default |
---|---|---|---|---|
|
|
| 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 | |
|
|
| 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. |
Examples
Related
Last updated