Up

Module Nfs

Nfs has analogs of functions in Core.Lock_file.Nfs; see there for documentation. In addition to adding Deferred's, blocking_create was renamed waiting_create to avoid the impression that it blocks Async.

Signature

val create : ?message:string -> string -> unit Async_extra.Import.Deferred.Or_error.t
val create_exn : ?message:string -> string -> unit Async_extra.Import.Deferred.t
val waiting_create : ?abort:unit Async_extra.Import.Deferred.t -> ?message:string -> string -> unit Async_extra.Import.Deferred.t
val unlock_exn : string -> unit Async_extra.Import.Deferred.t
val unlock : string -> unit Async_extra.Import.Deferred.Or_error.t
val critical_section : ?message:string -> string -> abort:unit Async_extra.Import.Deferred.t -> f:(unit -> 'a Async_extra.Import.Deferred.t) -> 'a Async_extra.Import.Deferred.t
val get_hostname_and_pid : string -> (string * Core.Std.Pid.t) option Async_extra.Import.Deferred.t
val get_message : string -> string option Async_extra.Import.Deferred.t