Program<'Arg, 'Model, 'Msg, 'View> Type
The Program type that holds the configuration of the MVU app.
Record fields
| Record Field |
Description
|
|
The dispatcher the update loop posts to, as an IDispatcher. None captures Dispatcher.UIThread once when the program starts, so the loop keeps one dispatcher for its lifetime even when the process global is later replaced; Some binds one explicitly — a headless test session's dispatcher, or any test fake implementing IDispatcher.
|
|
|
Full Usage:
OnError
Field type: string * exn -> unit
|
|
|
|
Full Usage:
Termination
Field type: ('Msg -> bool) * ('Model -> unit)
|
A message matching the predicate terminates the program: all subscriptions stop, the model stream completes, and the handler runs with the final model.
|
|
|
|
|
MVUish.Avalonia