Header menu logo Sutil

OfAsyncWith Module

Functions and values

Function or value Description

attempt start task arg ofError

Full Usage: attempt start task arg ofError

Parameters:
    start : Async<unit> -> unit
    task : 'a -> Async<'a0>
    arg : 'a
    ofError : exn -> 'msg

Returns: Cmd<'msg>

Command that will evaluate an async block and map the error (of exception)

start : Async<unit> -> unit
task : 'a -> Async<'a0>
arg : 'a
ofError : exn -> 'msg
Returns: Cmd<'msg>

either start task arg ofSuccess ofError

Full Usage: either start task arg ofSuccess ofError

Parameters:
    start : Async<unit> -> unit
    task : 'a -> Async<'a0>
    arg : 'a
    ofSuccess : 'a0 -> 'msg
    ofError : exn -> 'msg

Returns: Cmd<'msg>

Command that will evaluate an async block and map the result into success or error (of exception)

start : Async<unit> -> unit
task : 'a -> Async<'a0>
arg : 'a
ofSuccess : 'a0 -> 'msg
ofError : exn -> 'msg
Returns: Cmd<'msg>

perform start task arg ofSuccess

Full Usage: perform start task arg ofSuccess

Parameters:
    start : Async<unit> -> unit
    task : 'a -> Async<'a0>
    arg : 'a
    ofSuccess : 'a0 -> 'msg

Returns: Cmd<'msg>

Command that will evaluate an async block and map the success

start : Async<unit> -> unit
task : 'a -> Async<'a0>
arg : 'a
ofSuccess : 'a0 -> 'msg
Returns: Cmd<'msg>

result start task

Full Usage: result start task

Parameters:
Returns: Cmd<'msg>

Command that will evaluate an async block to the message

start : Async<unit> -> unit
task : Async<'msg>
Returns: Cmd<'msg>

Type something to start searching.