bind
Namespace:
FsToolkit.ErrorHandling
Function Signature:
('a -> Task<Result<'b, 'c>>)
-> Task<Result<'a, 'c>>
-> Task<Result<'b, 'c>>
Note: Many use-cases requiring
bind
operations can also be solved using the taskResult
computation expression.let notifyFollowers : NotifyNewPostRequest -> Task<Result<unit,exn>>
we can notify all followers using
TaskResult.bind
as below:newPostRequestResult |> TaskResult.bind notifyFollowers
Last modified 1yr ago