Computation Expression
Namespace:
FsToolkit.ErrorHandling
The AsyncResultOption.map2 example can be written using the
asyncResultOption
computation expression as below:// Async<Result<UserTweet option, exn>>
asyncResultOption {
let! post = getPostById samplePostId
let! user = getUserById post.UserId
return userTweet post user
}
Last modified 1yr ago