package irmin-pack

  1. Overview
  2. Docs
Irmin backend which stores values in a pack file

Install

Dune Dependency

Authors

Maintainers

Sources

irmin-3.5.1.tbz
sha256=cd788a8d3f4a3dd18dc160a153d4aec91eaf6b0fb41ad41464d26c79c304a98e
sha512=4f97862678d35e0b4aa814a1df51d6f8c59bcf5b611c73f0a475f9b5386ca42a4a18e65ce80fc425ddad93fcdacfcb563c52f6423777610a0bc567902f4db088

doc/irmin-pack.unix/Irmin_pack_unix/Async/Unix/index.html

Module Async.UnixSource

Basic abstraction for a worker.

Sourcetype t

A task

Sourcetype outcome = [
  1. | `Success
  2. | `Cancelled
  3. | `Failure of string
]
Sourceval outcome_t : outcome Irmin.Type.t
Sourcetype status = [
  1. | outcome
  2. | `Running
]
Sourceval status_t : status Irmin.Type.t
Sourceval async : (unit -> unit) -> t

Start a task.

Sourceval await : t -> [> outcome ] Lwt.t

If running, wait for a task to finish and return its outcome.

If not running, return the oucome of the task.

Sourceval status : t -> [> status ]

If running, refresh the status of the task, without blocking.

If not running, return the oucome of the task.

Sourceval cancel : t -> bool

If running, cancel the task and return true.

If not running, do nothing and return false.

OCaml

Innovation. Community. Security.