exception Init_more_than_onceexception InvalidNode of Distributed.Node_id.texception Local_only_modetype message_type = Msg.ttype monitor_reason = | Normal of Distributed.Process_id.t| Exception of Distributed.Process_id.t * exn| UnkownNodeId of Distributed.Process_id.t * Distributed.Node_id.t| NoProcess of Distributed.Process_id.t
val (>>=) : 'a t -> ('a -> 'b t) -> 'b ttype proc_rep = | Fun of unit -> unit t| Registered of string
val register : string -> (Distributed.Process_id.t -> unit -> unit t) -> unit tval catch : (unit -> 'a t) -> (exn -> 'a t) -> 'a tval spawn :
?monitor:bool ->
Distributed.Node_id.t ->
proc_rep ->
Distributed.Process_id.t ->
(Distributed.Process_id.t * monitor_ref option) tval receive : ?timeout_duration:float -> 'a matcher_list -> 'a option tval receive_loop : ?timeout_duration:float -> bool matcher_list -> unit tval get_self_pid : Distributed.Process_id.t tval get_self_node : Distributed.Node_id.t tval get_remote_node : string -> Distributed.Node_id.t option tval get_remote_nodes : Distributed.Node_id.t list tval add_remote_node : string -> int -> string -> Distributed.Node_id.t tval remove_remote_node : Distributed.Node_id.t -> unit tval lift_io : 'a io -> 'a tval (let*) : 'a t -> ('a -> 'b t) -> 'b tval (let+) : 'a t -> ('a -> 'b) -> 'b tval mapM : ('a -> 'b t) -> 'a list -> 'b list tval dmap :
pids:Distributed.Process_id.t list ->
request:('a -> index:int -> 'step M.request) ->
reply:('step M.reply -> (unit -> 'b t) option) ->
'a list ->
'b list tval handle_request :
Distributed.Process_id.t ->
step:'step M.step ->
handler:('step M.request -> (unit -> ('step M.reply * 'b) t) option) ->
'b t