package mirage-solo5

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val await_shutdown_request : ?can_poweroff:bool -> ?can_reboot:bool -> unit -> [ `Poweroff | `Reboot ] Lwt.t

await_shutdown_request () is thread that resolves when the domain is asked to shut down. The optional poweroff (default:true) and reboot (default:false) arguments can be used to indicate which features the caller wants to advertise (however, you can still get a request for a mode you didn't claim to support).

OCaml

Innovation. Community. Security.