Async.Unix
Basic abstraction for a worker.
val outcome_t : outcome Irmin.Type.t
val status_t : status Irmin.Type.t
val async : (unit -> unit) -> t
Start a task.
If running, wait for a task to finish and return its outcome.
If not running, return the oucome of the task.
If running, refresh the status of the task, without blocking.
If not running, return the oucome of the task.
val cancel : t -> bool
If running, cancel the task and return true
.
If not running, do nothing and return false
.