Skip to main content

Module interrupt

Module interrupt 

Source
Expand description

The process’s interrupt check. Long computations call check between steps, about every BETWEEN_CHECKS items, and stop with its error. A frontend installs its check with install: basedpl’s stops the running evaluation at an interrupt or a passed deadline, and rustymath’s Python bindings’ raise the exception of a pending signal. Until a frontend installs one, check passes.

Functions§

check
The installed check’s result: an error of kind Interrupt or Timeout stops the computation that called it. Ok until a frontend installs a check.
install
Makes hook the process’s interrupt check. The first check installed stays, and a later call does nothing.