package coq-core
Install
Dune Dependency
Authors
Maintainers
Sources
md5=64b49dbc3205477bd7517642c0b9cbb6
sha512=02fb5b4fb575af79e092492cbec6dc0d15a1d74a07f827f657a72d4e6066532630e5a6d15be4acdb73314bd40b9a321f9ea0584e0ccfe51fd3a56353bd30db9b
doc/coq-core.lib/Control/index.html
Module Control
Source
Global control of Coq.
Used to convert signals to exceptions
Coq interruption: set the following boolean reference to interrupt Coq (it eventually raises Break
, simulating a Ctrl-C)
Use this function as a potential yield function. If interrupt
has been set, il will raise Sys.Break
.
timeout n f x
tries to compute Some (f x)
, and if it fails to do so before n
seconds, returns None
instead.
Set a particular timeout function; warning, this is an internal API and it is scheduled to go away.
protect_sigalrm f x
computes f x
, but if SIGALRM is received during that computation, the signal handler is executed only once the computation is terminated. Otherwise said, it makes the execution of f
atomic w.r.t. handling of SIGALRM.
This is useful for example to prevent the implementation of `Timeout` to interrupt I/O routines, generating ill-formed output.