> For the complete documentation index, see [llms.txt](https://demystifyfp.gitbook.io/fstoolkit-errorhandling/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://demystifyfp.gitbook.io/fstoolkit-errorhandling/fstoolkit.errorhandling/taskvalueoption/others.md).

# Other Functions

## defaultValue

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

### Function Signature

```fsharp
'a -> Task<'a voption> -> Task<'a>
```

## defaultWith

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

### Function Signature

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

## valueSome

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

### Function Signature

```fsharp
'a -> Task<'a voption>
```
