Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 524 Bytes

File metadata and controls

33 lines (19 loc) · 524 Bytes

Other AsyncOption Functions

defaultValue

Returns the contained value if Some, otherwise returns the provided value

Function Signature

'a -> Async<'a option> -> Async<'a>

defaultWith

Returns the contained value if Some, otherwise evaluates the given function and returns the result.

Function Signature

(unit -> 'a) -> Async<'a option> -> Async<'a>

some

Wraps the provided value in an Async

Function Signature

'a -> Async<'a option>