Up

module Lwt_signal

: sig

Signals utilities

This module is deprecated, you should use Lwt_react.S instead.

#
val return : 'a -> 'a React.signal
#
val bind : ?eq:('b -> 'b -> bool) -> 'a React.signal -> ('a -> 'b React.signal) -> 'b React.signal
#
val with_finaliser : (unit -> unit) -> 'a React.signal -> 'a React.signal
#
val limit : ?eq:('a -> 'a -> bool) -> (unit -> unit Lwt.t) -> 'a React.signal -> 'a React.signal
#
val delay : 'a React.signal Lwt.t -> 'a React.event
#
val app_s : ?eq:('b -> 'b -> bool) -> ('a -> 'b Lwt.t) React.signal -> 'b -> 'a React.signal -> 'b React.signal
#
val map_s : ?eq:('b -> 'b -> bool) -> ('a -> 'b Lwt.t) -> 'b -> 'a React.signal -> 'b React.signal
#
val filter_s : ?eq:('a -> 'a -> bool) -> ('a -> bool Lwt.t) -> 'a -> 'a React.signal -> 'a React.signal
#
val fmap_s : ?eq:('b -> 'b -> bool) -> ('a -> 'b option Lwt.t) -> 'b -> 'a React.signal -> 'b React.signal
#
val diff_s : ('a -> 'a -> 'b Lwt.t) -> 'a React.signal -> 'b React.event
#
val sample_s : ('b -> 'a -> 'c Lwt.t) -> 'b React.event -> 'a React.signal -> 'c React.event
#
val accum_s : ?eq:('a -> 'a -> bool) -> ('a -> 'a Lwt.t) React.event -> 'a -> 'a React.signal
#
val fold_s : ?eq:('a -> 'a -> bool) -> ('a -> 'b -> 'a Lwt.t) -> 'a -> 'b React.event -> 'a React.signal
#
val merge_s : ?eq:('a -> 'a -> bool) -> ('a -> 'b -> 'a Lwt.t) -> 'a -> 'b React.signal list -> 'a React.signal
#
val l1_s : ?eq:('b -> 'b -> bool) -> ('a -> 'b Lwt.t) -> 'b -> 'a React.signal -> 'b React.signal
#
val l2_s : ?eq:('c -> 'c -> bool) -> ('a -> 'b -> 'c Lwt.t) -> 'c -> 'a React.signal -> 'b React.signal -> 'c React.signal
#
val l3_s : ?eq:('d -> 'd -> bool) -> ('a -> 'b -> 'c -> 'd Lwt.t) -> 'd -> 'a React.signal -> 'b React.signal -> 'c React.signal -> 'd React.signal
#
val l4_s : ?eq:('e -> 'e -> bool) -> ('a -> 'b -> 'c -> 'd -> 'e Lwt.t) -> 'e -> 'a React.signal -> 'b React.signal -> 'c React.signal -> 'd React.signal -> 'e React.signal
#
val l5_s : ?eq:('f -> 'f -> bool) -> ('a -> 'b -> 'c -> 'd -> 'e -> 'f Lwt.t) -> 'f -> 'a React.signal -> 'b React.signal -> 'c React.signal -> 'd React.signal -> 'e React.signal -> 'f React.signal
#
val l6_s : ?eq:('g -> 'g -> bool) -> ('a -> 'b -> 'c -> 'd -> 'e -> 'f -> 'g Lwt.t) -> 'g -> 'a React.signal -> 'b React.signal -> 'c React.signal -> 'd React.signal -> 'e React.signal -> 'f React.signal -> 'g React.signal
#
val run_s : ?eq:('a -> 'a -> bool) -> 'a -> 'a Lwt.t React.signal -> 'a React.signal
#
type notifier
#
val disable : notifier -> unit
#
val notify : ('a -> unit) -> 'a React.signal -> notifier
#
val notify_p : ('a -> unit Lwt.t) -> 'a React.signal -> notifier
#
val notify_s : ('a -> unit Lwt.t) -> 'a React.signal -> notifier
#
val always_notify : ('a -> unit) -> 'a React.signal -> unit
#
val always_notify_p : ('a -> unit Lwt.t) -> 'a React.signal -> unit
#
val always_notify_s : ('a -> unit Lwt.t) -> 'a React.signal -> unit
end