OfFunc Module
Functions and values
| Function or value |
Description
|
Full Usage:
attempt f arg ofError dispatch onError
Parameters:
'Arg -> unit
arg : 'Arg
ofError : exn -> 'Msg
dispatch : Dispatch<'Msg>
onError : string * exn -> unit
Modifiers: inline Type parameters: 'Arg, 'Msg |
Run a sync function for its effect. Only an exception produces a message.
|
Full Usage:
either f arg ofSuccess ofError dispatch onError
Parameters:
'Arg -> 'Result
arg : 'Arg
ofSuccess : 'Result -> 'Msg
ofError : exn -> 'Msg
dispatch : Dispatch<'Msg>
onError : string * exn -> unit
Modifiers: inline Type parameters: 'Arg, 'Result, 'Msg |
Run a sync function and map success or exception into messages.
|
Full Usage:
perform f arg ofSuccess dispatch onError
Parameters:
'Arg -> 'Result
arg : 'Arg
ofSuccess : 'Result -> 'Msg
dispatch : Dispatch<'Msg>
onError : string * exn -> unit
Modifiers: inline Type parameters: 'Arg, 'Result, 'Msg |
Run a sync function and dispatch its result. An exception is reported to the error handler.
|
MVUish.Avalonia