# LibTmux.Testing.TmuxNameGenerator.CreateAvailableSessionNameAsync

- **Module:** LibTmux.Testing
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux.Testing/TmuxNameGenerator.cs#L42
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-testing-tmuxnamegenerator-createavailablesessionnameasync/

```
LibTmux.Testing.TmuxNameGenerator.CreateAvailableSessionNameAsync(server: Server, prefix: string?, cancellationToken: CancellationToken) -> Task<string>
```

Makes a session name the server does not already hold.

## Parameters

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

## Returns

The name.
