package caqti

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

Install

Dune Dependency

Authors

Maintainers

Sources

caqti-v2.2.4.tbz
sha256=b8ea432820154ec095132c4f7b244b06cd8553e0b2035185b844d9c4f30af8bb
sha512=b7e3ad8e6a9b587db2d517e15cd42df2945148f9223b2fa6f4bc2bcdd2709d53549cca4b65e54511d22466e4c9aa7f0b9c17305a07505519d8bf81d95de629b8

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

Parameter Make._

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.