package polly

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t

a set of events

val empty : t

empty set

The values below define singleton sets containing exactly one event like inp (input) or hup. See epoll_ctl(2) for the events available. Sets can be combined using (land) (intersection) and (lor) (join) and compared using (=).

val inp : t

called "in" in Linux; "in" is an OCaml keyword

val pri : t
val out : t
val rdnorm : t
val rdband : t
val wrnorm : t
val wrband : t
val msg : t
val err : t
val hup : t
val rdhup : t
val wakeup : t
val oneshot : t
val et : t
val (lor) : t -> t -> t

join sets

val (land) : t -> t -> t

intersect sets

val lnot : t -> t

set complement

val test : t -> t -> bool

test x y returns true, if and only if the intersection of the two sets is not empty. The common case is test set x where set is unknown and x is a singleton to check that x is contained in set.

val to_string : t -> string

to_string t return a string representation of t for debugging

OCaml

Innovation. Community. Security.