package virtual_dom

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module For_testing.Query_response_trackerSource

Sourcetype ('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'.

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

Innovation. Community. Security.