-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdriver.mli
38 lines (32 loc) · 1.13 KB
/
driver.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
open! Core
open! Import
type ('i, 'r) t
val create
: ?optimize:bool
-> time_source:Bonsai.Time_source.t
-> initial_input:'i
-> ('i Bonsai.Proc.Value.t -> Bonsai.graph -> 'r Bonsai.t)
-> ('i, 'r) t
val set_input : ('i, _) t -> 'i -> unit
(** Apply all pending actions and stabilize the incremental graph, updating [result]. *)
val flush : _ t -> unit
val schedule_event : _ t -> unit Ui_effect.t -> unit
val result : (_, 'r) t -> 'r
val last_view : _ t -> string Lazy.t
val store_view : _ t -> string Lazy.t -> unit
val trigger_lifecycles : _ t -> unit
val has_after_display_events : _ t -> bool
val sexp_of_model : _ t -> Sexp.t
val input : ('i, _) t -> 'i
val result_incr : (_, 'r) t -> 'r Incr.t
val lifecycle_incr : _ t -> Incr.Packed.t
val action_input_incr : _ t -> Incr.Packed.t
val time_source : (_, _) t -> Bonsai.Time_source.t
val invalidate_observers : _ t -> unit
val reset_model_to_default : _ t -> unit
val print_actions : _ t -> unit
val print_stabilizations : _ t -> unit
val print_stabilization_tracker_stats : _ t -> unit
module Private : sig
val running_computation : (_, 'r) t -> 'r Bonsai.Private.Computation.t
end