Logo MVUish.Avalonia

OfAsync Module

Functions and values

Function or value Description

attempt f arg ofError

Full Usage: attempt f arg ofError

Parameters:
    f : 'Arg -> Async<unit>
    arg : 'Arg
    ofError : exn -> 'Msg

Returns: Cmd<'Msg>
Modifiers: inline
Type parameters: 'Arg, 'Msg

Run an async workload on the current thread for its effect. Only an exception produces a message.

f : 'Arg -> Async<unit>
arg : 'Arg
ofError : exn -> 'Msg
Returns: Cmd<'Msg>

either f arg ofSuccess ofError

Full Usage: either f arg ofSuccess ofError

Parameters:
    f : 'Arg -> Async<'Result>
    arg : 'Arg
    ofSuccess : 'Result -> 'Msg
    ofError : exn -> 'Msg

Returns: Cmd<'Msg>
Modifiers: inline
Type parameters: 'Arg, 'Result, 'Msg

Run an async workload on the current thread and map success or exception into messages.

f : 'Arg -> Async<'Result>
arg : 'Arg
ofSuccess : 'Result -> 'Msg
ofError : exn -> 'Msg
Returns: Cmd<'Msg>

perform f arg ofSuccess

Full Usage: perform f arg ofSuccess

Parameters:
    f : 'Arg -> Async<'Result>
    arg : 'Arg
    ofSuccess : 'Result -> 'Msg

Returns: Cmd<'Msg>
Modifiers: inline
Type parameters: 'Arg, 'Result, 'Msg

Run an async workload on the current thread and dispatch its result. An exception is reported to the error handler.

f : 'Arg -> Async<'Result>
arg : 'Arg
ofSuccess : 'Result -> 'Msg
Returns: Cmd<'Msg>

Type something to start searching.