package async_udp

  1. Overview
  2. Docs
type t =
  1. | Closed
  2. | Stopped
val sexp_of_t : t -> Sexplib0.Sexp.t
include Ppx_compare_lib.Comparable.S with type t := t
val compare : t Base__Ppx_compare_lib.compare
val of_fd_interruptible_every_ready_to_result_exn : (_, _) Iobuf.t option -> string -> 'a -> ('a -> Async.Sexp.t) -> [ `Bad_fd | `Closed | `Unsupported | `Interrupted ] -> t

As the name implies, this is useful for other modules that want to compatibly convert the result of Fd.interruptible_ready_to to a loop result or exception.

OCaml

Innovation. Community. Security.