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

# bind

### TaskResult.bind

Namespace: `FsToolkit.ErrorHandling`

Function Signature:

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

### Examples

Note: Many use-cases requiring `bind` operations can also be solved using [the `taskResult` computation expression](broken://pages/-Le0P1sEelcveSuPcTDr).

#### Example 1

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

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

we can notify all followers using `TaskResult.bind` as below:

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