> 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/bind.md).

# bind

### CancellableTaskResult.bind

Namespace: `FsToolkit.ErrorHandling`

Function Signature:

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

### Examples

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

#### Example 1

Continuing from the [CancellableTaskResult.map2 example](broken://pages/JR0jTdQ924jvWV2LvxmX#example-1) and given the function

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

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

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