# LibTmux.Testing.TmuxNameGenerator.CreateAvailableWindowNameAsync

- **Module:** LibTmux.Testing.TmuxNameGenerator
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Testing/TmuxNameGenerator.cs#L68
- **Page:** https://libtmux.org/reference/dotnet/libtmux-testing-tmuxnamegenerator-createavailablewindownameasync/

```
LibTmux.Testing.TmuxNameGenerator.CreateAvailableWindowNameAsync(session: Session, prefix: string?, cancellationToken: CancellationToken) -> Task<string>
```

Makes a window name the session does not already hold.

## Parameters

- `session` (Session) — The session to ask.
- `prefix` (string?) — What the name starts with, or null for this generator's.
- `cancellationToken` (CancellationToken) — Cancels the tmux commands.

## Returns

The name.
