Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Riot.Process
t
is the type of all processes in the Riot runtime.
A process is a lightweight unit of work that has a lifecycle and a mailbox.
You rarely work directly with this type, and usually handle Pid.t
values instead.
val pp : Format.formatter -> t -> unit
type process_flag =
| Trap_exit of bool
Trap_exit true
makes sure this process does not exit when it receives an Exit message (see Process.Messages
) from a linked process that has died.
A process flag is a configuration for the behavior of a process.
type exit_reason =
| Normal
The process ended normally.
*)| Exit_signal
The process received an exit signal
*)| Bad_link
The process tried to establish a bad link
*)| Link_down of Pid.t
Use to indicate that this process was terminated due to a linked process being termianted
*)| Exception of exn
The process terminated due to an unhandled exception
*)module Messages : sig ... end