Last updated 3 years ago
Namespace: FsToolkit.ErrorHandling
FsToolkit.ErrorHandling
The can be written using the asyncResultOption computation expression as below:
asyncResultOption
// Async<Result<UserTweet option, exn>> asyncResultOption { let! post = getPostById samplePostId let! user = getUserById post.UserId return userTweet post user }