package b0

  1. Overview
  2. Docs
Software construction and deployment kit

Install

Dune Dependency

Authors

Maintainers

Sources

b0-0.0.1.tbz
sha256=dba2fc571f39f3b8e87ee55c77bdec7ec6a5ddc7d99b8b20aeda848af546be04
md5=51ee1d66acc4d7f87bdceac1341b7711

doc/b0.b00/B000/Op/Notify/index.html

Module Op.Notify

End-user notifications.

Notification

type t

The type for notification.

type kind = [
  1. | `End
  2. | `Fail
  3. | `Info
  4. | `Start
  5. | `Warn
]

The type for kinds of notifications.

val v_op : id:id -> mark:mark -> created:B00_std.Time.span -> ?post_exec:(op -> unit) -> ?k:(op -> unit) -> kind -> string -> op

v_op declares a notification operation see the corresponding accessors in Notify for the semantics of the various arguments.

val v : kind:kind -> msg:string -> t

v constructs a notification operation.

val get : op -> t

get o is the notification o. Raise Invalid_argument if o is not a notification.

val kind : t -> kind

kind is the kind of notification.

val msg : t -> string

msg is the message.

OCaml

Innovation. Community. Security.