Bonsai.Vartype 'a t = 'a Cont.Expert.Var.tA Var.t is the primary method for making data obtained outside of Bonsai (maybe via an RPC) accessible inside a Bonsai application.
val create : 'a -> 'a tCreates a new Var.t with an initial value.
val update : 'a t -> f:('a -> 'a) -> unitUpdates the value inside of t. f is given the previous value of t so that you can reuse parts of the value if applicable
val set : here:lexing_position -> 'a t -> 'a -> unitSets the value inside of t.
val get : 'a t -> 'aGets the value inside of t.
Provides read-only access to t by producing a Value.t which is used inside of a Bonsai computation.
val incr_var : 'a t -> 'a Ui_incr.Var.tRetrieves the underlying 'a t Ui_incr.t var.