# LibTmux.FSharp.Control.iter

- **Module:** LibTmux.FSharp
- **Package:** LibTmux.FSharp
- **Language:** F#
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux.FSharp/Control.fsi#L94
- **Page:** https://libtmux.org/en/fsharp/latest/reference/libtmux-fsharp-control-iter/

```
val iter:
        cancellationToken: CancellationToken -> handler: ('T -> Task) -> source: IAsyncEnumerable<'T> -> Task<unit>
```

Awaits one handler at a time for each item until the stream ends.

The helper disposes its enumerator but leaves the control client open.

## Parameters

- `cancellationToken` (`CancellationToken`)
- `handler` (`('T -> Task)`)
- `source` (`IAsyncEnumerable<'T>`)
