Logo MVUish.Avalonia

Cmd Module

Nested modules

Modules Description

OfAsync

OfAsyncWith

OfFunc

OfTask

OfValueTask

Functions and values

Function or value Description

batch cmds dispatch onError

Full Usage: batch cmds dispatch onError

Parameters:
    cmds : Cmd<'Msg> seq
    dispatch : Dispatch<'Msg>
    onError : string * exn -> unit

Modifiers: inline
Type parameters: 'Msg
cmds : Cmd<'Msg> seq
dispatch : Dispatch<'Msg>
onError : string * exn -> unit

map mapping cmd dispatch onError

Full Usage: map mapping cmd dispatch onError

Parameters:
    mapping : 'A -> 'Msg
    cmd : Cmd<'A>
    dispatch : Dispatch<'Msg>
    onError : string * exn -> unit

Modifiers: inline
Type parameters: 'A, 'Msg
mapping : 'A -> 'Msg
cmd : Cmd<'A>
dispatch : Dispatch<'Msg>
onError : string * exn -> unit

none arg1 arg2

Full Usage: none arg1 arg2

Parameters:
    arg0 : Dispatch<'Msg>
    arg1 : string * exn -> unit

Type parameters: 'Msg
arg0 : Dispatch<'Msg>
arg1 : string * exn -> unit

ofAction action arg2 arg3

Full Usage: ofAction action arg2 arg3

Parameters:
    action : unit -> unit
    arg1 : Dispatch<'Msg>
    arg2 : string * exn -> unit

Modifiers: inline
Type parameters: 'Msg

Run a plain action as a command, for view-side interactions such as clearing a text box from update. The action owns its own error handling; exceptions it throws are not caught.

action : unit -> unit
arg1 : Dispatch<'Msg>
arg2 : string * exn -> unit

ofEffect effect dispatch arg3

Full Usage: ofEffect effect dispatch arg3

Parameters:
    effect : Dispatch<'Msg> -> unit
    dispatch : Dispatch<'Msg>
    arg2 : string * exn -> unit

Modifiers: inline
Type parameters: 'Msg

Lift a raw effect that can also dispatch messages when it finishes. The effect owns its own error handling; exceptions it throws are not caught.

effect : Dispatch<'Msg> -> unit
dispatch : Dispatch<'Msg>
arg2 : string * exn -> unit

ofMsg msg dispatch arg3

Full Usage: ofMsg msg dispatch arg3

Parameters:
    msg : 'Msg
    dispatch : Dispatch<'Msg>
    arg2 : string * exn -> unit

Modifiers: inline
Type parameters: 'Msg
msg : 'Msg
dispatch : Dispatch<'Msg>
arg2 : string * exn -> unit

Type something to start searching.