Go to the first, previous, next, last section, table of contents.

Timeout Predicate

The timeout package, which may be loaded by the query

| ?- use_module(library(timeout)).

contains the predicate:

time_out(:Goal, +Time, ?Result)
The Goal is executed as if by call/1. If the execution exceeds Time milliseconds, virtual time, the goal will fail and Result is unified with the atom time_out. If the goal succeeds within the specified time Result is unified with the atom success. Time must be a number between (not including) 0 and 2147483647.

The predicate(s) in this package is primarily intended for development.


Go to the first, previous, next, last section, table of contents.