package sel

  1. Overview
  2. Docs
Module type
Class type

The type of events and operations (setting priority, cancelling, ...)

type 'a t
val pp : (Stdlib.Format.formatter -> 'a -> unit) -> Stdlib.Format.formatter -> 'a t -> unit

pretty printer

val map : ('a -> 'b) -> 'a t -> 'b t

inject an event into another one

val name : string -> 'a t -> 'a t

for debug printing

val recurring : 'a t -> 'a t

a recurrent event is never removed from the todo set, that is, when ready a copy of it is added back automatically

val at_priority : int -> 'a t -> 'a t

lower integers correspond to high priorities (as in Unix nice)

type cancellation_handle
val get_cancellation_handle : 'e t -> cancellation_handle

in order to cancel an event, one has to store its cancellation handle

val cancel : cancellation_handle -> unit

a cancelled event is automatically removed from the todo set