package caqti

  1. Overview
  2. Docs
Unified interface to relational database libraries

Install

Dune Dependency

Authors

Maintainers

Sources

caqti-v2.0.1.tbz
sha256=7eb57225c521fe25395653d960b1c381bb2b2ccae47bc2a827bb16611988da8b
sha512=eeafaf495b08fb8620ddee1711b8f9fa2ca0c79fb450a905c8d071806b7046d665e1e2ac0e7d3c7ca1258455decbf184e689e9ecb2453ec9d952b864f9dd14f4

doc/caqti.platform/Caqti_platform/Pool/Make/argument-2-Alarm/index.html

Parameter Make.Alarm

type t

A handle for cancelling the alarm if supported.

val schedule : sw:System.Switch.t -> stdenv:System.stdenv -> Mtime.t -> (unit -> unit) -> t

If supported, schedule ~sw ~stdenv time f schedules f to be run at time and returns a handle which can be used to unschedule it. The caqti-blocking implementation does nothing. The pool implementation using it makes additional opportunistic calls to the handler. This function must insert a yield before running the function even if the delay is non-positive.

val unschedule : t -> unit

Cancels the alarm if supported. This is only used for early clean-up, so the implementation may choose to let it time out instead.

OCaml

Innovation. Community. Security.