# LibTmux.Testing.TmuxNameGenerator.CreateAvailableWindowNameAsync

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