Documentation Prolog Predicate Reference concurrent await/2

await/2

Wait for a Future.

Description

await( +future, ?term )

await(Future, Value) waits for Future to finish. If Future resolves to failure, the goal await(Future, _) fails. If Future resolves to an exception, the goal await(Future, _) throws an exception.

Implementation