Namespace: FsToolkit.ErrorHandling
Function Signature:
('a -> CancellableValueTask<Result<'b, 'c>>)
-> CancellableValueTask<Result<'a, 'c>>
-> CancellableValueTask<Result<'b, 'c>>Note: Many use-cases requiring bind operations can also be solved using the cancellableValueTaskResult computation expression.
Continuing from the CancellableValueTaskResult.map2 example and given the function
let notifyFollowers : NotifyNewPostRequest -> CancellableValueTask<Result<unit,exn>>We can notify all followers using CancellableValueTaskResult.bind as below:
newPostRequestResult |> CancellableValueTaskResult.bind notifyFollowers