# bind

### Task.bind

Namespace: `FsToolkit.ErrorHandling`

Function Signature:

```fsharp
('a -> Task<'b>>) -> Task<'a> -> Task<'b>
```

### Examples

Note: Many use-cases requiring `bind` operations can also be solved using [the `task` computation expression](https://demystifyfp.gitbook.io/fstoolkit-errorhandling/fstoolkit.errorhandling/task/ce).

#### Example 1

Continuing from the [Task.map2 example](https://demystifyfp.gitbook.io/fstoolkit-errorhandling/fstoolkit.errorhandling/map2#example-1) and given the function

```fsharp
let notifyFollowers : NotifyNewPostRequest -> Task<unit>
```

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

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