Other Functions

defaultValue

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

Function Signature

'a -> ValueTask<'a voption> -> ValueTask<'a>

defaultWith

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

Function Signature

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

valueSome

Wraps the provided value in a ValueTask<'a voption>

Function Signature

'a -> ValueTask<'a voption>

Last updated