package coq-core
Install
Dune Dependency
Authors
Maintainers
Sources
md5=0cfaa70f569be9494d24c829e6555d46
sha512=8ee967c636b67b22a4f34115871d8f9b9114df309afc9ddf5f61275251088c6e21f6cf745811df75554d30f4cebb6682f23eeb2e88b771330c4b60ce3f6bf5e2
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.