> For the complete documentation index, see [llms.txt](https://demystifyfp.gitbook.io/fstoolkit-errorhandling/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://demystifyfp.gitbook.io/fstoolkit-errorhandling/fstoolkit.errorhandling.icedtasks/index-2/bind.md).

# bind

Namespace: `FsToolkit.ErrorHandling`

Function Signature:

```fsharp
('a -> CancellableValueTask<Result<'b, 'c>>)
  -> CancellableValueTask<Result<'a, 'c>>
  -> CancellableValueTask<Result<'b, 'c>>
```

## Examples

Note: Many use-cases requiring `bind` operations can also be solved using [the `cancellableValueTaskResult` computation expression](/fstoolkit-errorhandling/fstoolkit.errorhandling.icedtasks/index-2/ce.md).

### Example 1

Continuing from the CancellableValueTaskResult.map2 example and given the function

```fsharp
let notifyFollowers : NotifyNewPostRequest -> CancellableValueTask<Result<unit,exn>>
```

We can notify all followers using `CancellableValueTaskResult.bind` as below:

```fsharp
newPostRequestResult |> CancellableValueTaskResult.bind notifyFollowers
```
