module Lwt_event: sig
.. end
Events utilities
type
notifier
Type of event notifiers
val disable : notifier -> unit
disable notif
stops the corresponding event to be monitored
val notify : ('a -> unit) -> 'a React.event -> notifier
notify f ev
calls f x
each time ev
has a value x
val notify_p : ('a -> unit Lwt.t) -> 'a React.event -> notifier
notify_p f ev
is the same as notify
except that f x
is a
thread. Calls to f
are made in parallel.
val notify_s : ('a -> unit Lwt.t) -> 'a React.event -> notifier
notify_s f ev
is the same as notify
except that f x
is a
thread. Calls to f
are serialized.
val always_notify : ('a -> unit) -> 'a React.event -> unit
Same as notify
but does not return a notifier
val always_notify_p : ('a -> unit Lwt.t) -> 'a React.event -> unit
Same as notify_p
but does not return a notifier
val always_notify_s : ('a -> unit Lwt.t) -> 'a React.event -> unit
Same as notify_s
but does not return a notifier