# LibTmux.Testing.TmuxNameGenerator.CreateAvailableWindowNameAsync

- **Module:** LibTmux.Testing.TmuxNameGenerator
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux.Testing/TmuxNameGenerator.cs#L68
- **Page:** https://libtmux.org/en/dotnet/latest/reference/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.
