Module Futr
Futures as React events and vice-versa.
%%VERSION%% — homepage
Events
val to_event : ?never:'a -> (unit -> 'a Fut.t) -> 'a React.eventto_event foccurs once whenf ()determines. Iffis set to never determine the event never occurs unlessneveris specified in which case it occurs with the valuenever.Important. It is better if
factually creates the future rather than being a closure that captures an already created future. The reason is that TODO.
val of_event : 'a React.event -> 'a Fut.tof_event eis a future that determines on the next occurence ofe.Note. The React update step generating the occurence of
sis guaranteed to terminate before the future determines.