# LibTmux.OwnedWindowScope.DisposeAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Session.WindowNavigation.cs#L52
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-ownedwindowscope-disposeasync/

```
LibTmux.OwnedWindowScope.DisposeAsync() -> ValueTask
```

Stops the owned window.

## Returns

A task that completes once the window is gone.

## Raises

- [`LibTmuxException`](/en/csharp/latest/reference/libtmux-libtmuxexception/): The window could not be stopped.
