module Lwt_event:Events utilitiessig..end
val with_finaliser : (unit -> unit) -> 'a React.event -> 'a React.eventwith_finaliser f event returns an event event' which behave
as event, except that f is called when event' is garbage
collected.val next : 'a React.event -> 'a Lwt.tnext ev returns the next occurrence of evval limit : (unit -> unit Lwt.t) -> 'a React.event -> 'a React.eventlimit f event limits the rate of event with f.
For example, to limit the rate of an event to 1 per second you
can use: limit (fun () -> Lwt_unix.sleep 1.0) event.
val from : (unit -> 'a Lwt.t) -> 'a React.eventfrom f creates an event which occurs each f () returns a
value. If f raises an exception, the event is just stopped.val to_stream : 'a React.event -> 'a Lwt_stream.tval of_stream : 'a Lwt_stream.t -> 'a React.eventof_stream stream creates an event which occurs each time a
value is available on the stream.React counterpart,
except that they takes functions that may yield.
As usual the _s suffix is used when calls are serialized, and
the _p suffix is used when they are not.
Note that *_p functions may not preserve event order.
val app_s : ('a -> 'b Lwt.t) React.event -> 'a React.event -> 'b React.eventval app_p : ('a -> 'b Lwt.t) React.event -> 'a React.event -> 'b React.eventval map_s : ('a -> 'b Lwt.t) -> 'a React.event -> 'b React.eventval map_p : ('a -> 'b Lwt.t) -> 'a React.event -> 'b React.eventval filter_s : ('a -> bool Lwt.t) -> 'a React.event -> 'a React.eventval filter_p : ('a -> bool Lwt.t) -> 'a React.event -> 'a React.eventval fmap_s : ('a -> 'b option Lwt.t) -> 'a React.event -> 'b React.eventval fmap_p : ('a -> 'b option Lwt.t) -> 'a React.event -> 'b React.eventval diff_s : ('a -> 'a -> 'b Lwt.t) -> 'a React.event -> 'b React.eventval accum_s : ('a -> 'a Lwt.t) React.event -> 'a -> 'a React.eventval fold_s : ('a -> 'b -> 'a Lwt.t) -> 'a -> 'b React.event -> 'a React.eventval merge_s : ('a -> 'b -> 'a Lwt.t) -> 'a -> 'b React.event list -> 'a React.eventval run_s : 'a Lwt.t React.event -> 'a React.eventval run_p : 'a Lwt.t React.event -> 'a React.eventtype notifier
val disable : notifier -> unitdisable notif stops the corresponding event to be monitoredval notify : ('a -> unit) -> 'a React.event -> notifiernotify f ev calls f x each time ev has a value xval notify_p : ('a -> unit Lwt.t) -> 'a React.event -> notifiernotify_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 -> notifiernotify_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 -> unitnotify but does not return a notifierval always_notify_p : ('a -> unit Lwt.t) -> 'a React.event -> unitnotify_p but does not return a notifierval always_notify_s : ('a -> unit Lwt.t) -> 'a React.event -> unitnotify_s but does not return a notifier