Up

Module Semaphore = Semaphore

Signature

type t
val sexp_of_t : t -> Sexplib.Sexp.t
val create : int -> t
val value : t -> int
val incr : t -> unit
val decr : t -> unit Async.Std.Deferred.t
val resource : t -> (unit, Core.Std.Nothing.t) Resource.t