# LibTmux.Session.FindWindowAsync

- **Module:** LibTmux.Session
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Session.Relations.cs#L122
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-session-findwindowasync/

```
LibTmux.Session.FindWindowAsync(id: WindowId, cancellationToken: CancellationToken) -> Task<Window?>
```

Reads one of this session's windows by identifier.

A typed identifier is unique in a session that links a window at only
one index; the string overload also accepts a window name, which two
windows can share. When this session links the same window at more
than one index, this returns whichever placement tmux lists first.

## Parameters

- `id` (WindowId): The window identifier to look for.
- `cancellationToken` (CancellationToken): Cancels the tmux command.

## Returns

The window, or null when this session has no such window.
