# LibTmux.Testing.TemporaryWindowScope.StartAsync

- **Module:** LibTmux.Testing.TemporaryWindowScope
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Testing/TemporaryWindowScope.cs#L29
- **Page:** https://libtmux.org/reference/dotnet/libtmux-testing-temporarywindowscope-startasync/

```
LibTmux.Testing.TemporaryWindowScope.StartAsync(session: Session, request: NewWindowRequest?, parent: IAsyncDisposable?, cancellationToken: CancellationToken) -> Task<TemporaryWindowScope>
```

Creates a temporary window in a session.

## Parameters

- `session` (Session) — The session to create the window in.
- `request` (NewWindowRequest?) — The window to create.
- `parent` (IAsyncDisposable?) — The parent scope transferred into this scope.
- `cancellationToken` (CancellationToken) — Cancels the tmux commands.

## Returns

The scope owning the window.
