# LibTmux.TmuxBuffers.SetAsync

- **Module:** LibTmux.TmuxBuffers
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Buffers/TmuxBuffers.cs#L29
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-tmuxbuffers-setasync/

```
LibTmux.TmuxBuffers.SetAsync(data: string, name: string?, append: bool, cancellationToken: CancellationToken) -> Task
```

Puts text into a buffer.

## Parameters

- `data` (string): The text to store.
- `name` (string?): The buffer name, or null for a new one.
- `append` (bool): Whether the text joins what is already there.
- `cancellationToken` (CancellationToken): Cancels the tmux command.

## Returns

A task that completes once tmux has stored it.

## Raises

- `ArgumentNullException`: <paramref name="data" /> is null.
