FutureNew

Create a new BoxFuture object.

Method Signature

FutureNew(value=[any], executor=[any])

Arguments

ArgumentTypeRequiredDescriptionDefault

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.

Examples

Last updated

Logo

Copyright & Register Trademark by Ortus Solutions, Corp & Ortus Software, LLC