Operators
TaskResult Infix Operators
Examples:
Example 1
notifyFollowers : NotifyNewPostRequest -> Task<Result<unit, exn>>open FsToolkit.ErrorHandling.Operator.TaskResult
// CreatePostRequest -> Task<Result<unit, exn>>
let createPostAndNotifyFollowers (req : CreatePostRequest) =
notifyNewPostRequest
<!> (getFollowerIds req.UserId)
<*> (createPost req)
>>= notifyFollowersLast updated