Documentation Prolog Predicate Reference concurrent future_all/2

future_all/2

Make a Future that resolves to a list of the results of an input list of futures.

Description

future_all( +list_of_futures, -future )

future_all(ListOfFutures, FutureAll) takes a list of futures and returns a single future FutureAll that resolves to a list of the results of the ListOfFutures futures. If any future in ListOfFutures resolves to failure/exception, FutureAll also resolves to failure/exception.

Implementation