mnotty
Mnotty.Stop
type t
Type of switches.
val create : unit -> t
create () creates a new switch.
create ()
val switch : t -> unit
switch stop signals an associated task to terminate properly.
switch stop
val wait : t -> unit
wait stop waits a switch-off signal (via switch) from a possibly concurrent task.
wait stop
switch