Up

Module Async_mutex

Signature

type t
val create : unit -> t
val lock : t -> unit Async.Std.Deferred.t
val try_lock : t -> [
| `Acquired
| `Not_acquired
]
val unlock : t -> unit
val resource : t -> (unit, Core.Std.Nothing.t) Resource.t