package virtual_dom

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val eval : 'a t -> f:('a -> Base.unit) -> Base.unit

eval t ~f runs the given effect, and calls f when the effect completes. This function should not be called while constructing effects; it's intended for use by libraries that actually schedule effects, such as Bonsai, or Virtual_dom.

val handle : Base.unit t -> Base.unit

handle t is the same as eval t ~f:ignore

type hide =
  1. | T : ('a t * ('a -> Base.unit)) -> hide
val of_fun : f:(callback:('a -> Base.unit) -> Base.unit) -> 'a t
OCaml

Innovation. Community. Security.