package caqti-miou

  1. Overview
  2. Docs
Miou support for Caqti

Install

dune-project
 Dependency

Authors

Maintainers

Sources

caqti-v2.3.1.tbz
sha256=036380a0f1a67e09d002cc47f2cb1c52ebf4f7cc9b89ea5b70cec3b389ce298d
sha512=8d8e12e6101bb9b61b805e68236375f685c63400fefe3de422a24990e16b16ef2eeaebc66171b8dbe498be3e3d394445ee49c9a93b5b0b3e9d9d43b9fcf1acdc

doc/caqti-miou.unix/Caqti_miou_unix/Pool/index.html

Module Caqti_miou_unix.PoolSource

Sourcetype ('a, +'e) t
Sourceval size : ('a, 'e) t -> int

size pool is the current number of open resources in pool.

Sourceval use : ?priority:float -> ('a -> ('b, 'e) result) -> ('a, 'e) t -> ('b, 'e) result

use f pool calls f on a resource drawn from pool, handing back the resource to the pool when f exits.

  • parameter priority

    Requests for the resource are handled in decreasing order of priority. The default priority is 0.0.

Sourceval drain : ('a, 'e) t -> unit

drain pool closes all resources in pool. The pool is still usable, as new resources will be created on demand.