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