Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 538 Bytes

File metadata and controls

33 lines (19 loc) · 538 Bytes

Other TaskValueOption Functions

defaultValue

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

Function Signature

'a -> Task<'a voption> -> Task<'a>

defaultWith

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

Function Signature

(unit -> 'a) -> Task<'a voption> -> Task<'a>

valueSome

Wraps the provided value in an Task<'a voption>

Function Signature

'a -> Task<'a voption>