package core_extended

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
exception Timeout

Functions with timeouts

This module is here to add timeouts to any functions.

val run : timeout:Core.Time.Span.t -> f:('a -> 'b) -> sexp_of:('b -> Core.Sexp.t) -> of_sexp:(Core.Sexp.t -> 'b) -> 'a -> 'b

Runs a function in a fork process to ensure a timeout. The function passed must not raise an exception not have any weird side effects.

OCaml

Innovation. Community. Security.