package async_kernel
Module Event.Option
type value := tval sexp_of_t : t -> Sexplib0.Sexp.tConstructors analogous to None and Some. If not (some_is_representable x) then some x may raise or return none.
val none : tval is_none : t -> boolval is_some : t -> boolvalue (some x) ~default = x and value none ~default = default.
value_exn (some x) = x. value_exn none raises. Unlike Option.value_exn, there is no ?message argument, so that calls to value_exn that do not raise also do not have to allocate.
module Optional_syntax :
Core.Optional_syntax.S with type t := t with type value := value