AsyncAny
This BIF accepts an array of futures/closures/lambdas and executes them all in parallel, returning a BoxFuture that will contain the result of the first future that completes successfully.
Method Signature
AsyncAny(futures=[array], executor=[any])
Arguments
Argument
Type
Required
Description
Default
futures
array
true
An array of BoxFuture objects to process in parallel
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
Related
Last updated
Was this helpful?