Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.38 KB

File metadata and controls

37 lines (25 loc) · 1.38 KB

Function: FutureNew

Create a new BoxFuture object.

Method Signature

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

Arguments

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.

Examples

Related