bind
Task.bind
Namespace: FsToolkit.ErrorHandling
Function Signature:
('a -> Task<'b>>) -> Task<'a> -> Task<'b>
Examples
Note: Many use-cases requiring bind
operations can also be solved using the task
computation expression.
Example 1
Continuing from the Task.map2 example and given the function
let notifyFollowers : NotifyNewPostRequest -> Task<unit>
we can notify all followers using Task.bind
as below:
newPostRequestResult |> Task.bind notifyFollowers
Last updated