package irmin

  1. Overview
  2. Docs
On This Page
  1. Watch Helpers
Legend:
Library
Module
Module type
Parameter
Class
Class type

Watch provides helpers to register event notifications on read-write stores.

Watch Helpers

module type S = sig ... end

The signature for watch helpers.

val workers : unit -> int

workers () is the number of background worker threads managing event notification currently active.

val set_listen_dir_hook : (int -> string -> (string -> unit Lwt.t) -> (unit -> unit) Lwt.t) -> unit

Register a function which looks for file changes in a directory and return a function to stop watching. Could use inotify when available or Irmin_unix.set_listen_dir_hook to use active file polling.

module Make (K : Tc.S0) (V : Tc.S0) : S with type key = K.t and type value = V.t

Make builds an implementation of watch helpers.

OCaml

Innovation. Community. Security.