package virtual_dom

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type ('q, 'r) t

Query_response_tracker is an interface designed to make of_svar more convenient to use. When the function returned by of_query_response_tracker t is called (typically by your bonsai app), the query passed is stored within t. Your test code can then call maybe_respond to cause those effects to 'become determined'.

val create : Base.unit -> (_, _) t
type 'r maybe_respond =
  1. | No_response_yet
  2. | Respond of 'r
val maybe_respond : ('q, 'r) t -> f:('q -> 'r maybe_respond) -> Base.unit
val queries_pending_response : ('q, _) t -> 'q Base.list
OCaml

Innovation. Community. Security.