Header menu logo Sutil

OfAsync Module

Functions and values

Function or value Description

attempt task arg ofError

Full Usage: attempt task arg ofError

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

Returns: Cmd<'msg>
Modifiers: inline
Type parameters: 'a, 'a, 'msg

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

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

either task arg ofSuccess ofError

Full Usage: either task arg ofSuccess ofError

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

Returns: Cmd<'msg>
Modifiers: inline
Type parameters: 'a, 'a, 'msg

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

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

perform task arg ofSuccess

Full Usage: perform task arg ofSuccess

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

Returns: Cmd<'msg>
Modifiers: inline
Type parameters: 'a, 'a, 'msg

Command that will evaluate an async block and map the success

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

result task

Full Usage: result task

Parameters:
Returns: Cmd<'msg>
Modifiers: inline
Type parameters: 'msg

Command that will evaluate an async block to the message

task : Async<'msg>
Returns: Cmd<'msg>

start x

Full Usage: start x

Parameters:
x : Async<unit>

Type something to start searching.