> 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/asyncresultoption/ce.md).

# Computation Expression

### AsyncResultOption Computation Expression

Namespace: `FsToolkit.ErrorHandling`

### Examples

#### Example 1

The [AsyncResultOption.map2 example](/fstoolkit-errorhandling/fstoolkit.errorhandling/asyncresultoption/map2.md#example-1) can be written using the `asyncResultOption` computation expression as below:

```fsharp
// Async<Result<UserTweet option, exn>>
asyncResultOption {
  let! post = getPostById samplePostId
  let! user = getUserById post.UserId
  return userTweet post user
}
```
