threaded_exit(Goal, Options)
Retrieve the result of proving Goal
in a new thread. By default, this call blocks execution until the reply is sent to the this thread by the thread executing the goal. This predicate is non-deterministic, providing access to the alternative solutions of its first argument. The option peek
may be used to check if the reply is already available on the this thread. The option discard
may be used to discard all matching replies.
threaded_exit(+callable, +list)
threaded_exit(Goal, List)
threaded_exit(::Goal, List)
threaded_exit(Object::Goal, List)