# LibTmux.TmuxBuffers.GetAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Buffers/TmuxBuffers.cs#L66
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-tmuxbuffers-getasync/

tmux command: [`show-buffer`](/en/tmux/latest/manual/show-buffer/)

```
LibTmux.TmuxBuffers.GetAsync(name: string?, cancellationToken: CancellationToken) -> Task<string>
```

Reads a buffer in full.

## Parameters

- `name` (`string?`): The buffer to read, or null for the most recent.
- `cancellationToken` (`CancellationToken`): Cancels the tmux command.

## Returns

Everything the buffer holds.
