Module Logtk.Signal
Basic signal for multiple-callbacks Observer
val create : unit -> 'a t
New signal
val send : 'a t -> 'a -> unit
Trigger the signal
val on : 'a t -> ('a -> handler_response) -> unit
Register a handler to the signal; the handler returns
true
if it wants to continue being notified,false
otherwise
val on_every : 'a t -> ('a -> _) -> unit
on_every s f
callsf
on every event signalled ons
val once : 'a t -> ('a -> 'b) -> unit
Register a handler to be called only once
val propagate : 'a t -> 'a t -> unit
propagate a b
propagates all values ofa
intob
. Cycles are not detected.