package sel

All checked builds pass
  1. Overview
  2. Docs
Simple Event Library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

sel-0.10.0.tbz
sha256=9151431abaec30aeb93a4f5618587516023f9945ade84555d6e96cc517616cda
sha512=4d2401609602da9f08cfdab75ae4bc97205e44b7284ef979f3a7ba9acf9d378ada40fe6fd4f4a4a09457ea43cd3aa7a33eea601cf9fa914b4a99a3a52989dadd

doc/sel.core/Sel_core/Event/index.html

Module Sel_core.Event

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

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

pretty printer

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

inject an event into another one

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