Reactevents and vice-versa.
val to_event :
?never:'a -> (unit -> 'a Fut.t) -> 'a React.event
to_event foccurs once when
f ()determines. If
fis set to never determine the event never occurs unless
neveris specified in which case it occurs with the value
Important. It is better if
f actually 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.t
of_event eis a future that determines on the next occurence of
Note. The React update step generating the occurence of
is guaranteed to terminate before the future determines.