This commit is contained in:
Simon Cruanes 2022-09-19 21:49:47 -04:00
parent 88a10dcf3a
commit a313918e74
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -1,3 +1,10 @@
(** Event pattern.
This provides a basic observer pattern, where events are emitted
from some source (with an attached value), and callbacks that were
registered will receive this value.
*)
type ('a, 'b) t type ('a, 'b) t
(** An event emitting values of type ['a], where subscribers (** An event emitting values of type ['a], where subscribers
return values of type ['b]. *) return values of type ['b]. *)