# tmux_stream:close/1

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/38478dff54579a4f408005d0265031abdf3a880a/apps/libtmux_erlang/src/tmux_stream.erl#L126
- **Page:** https://libtmux.org/en/erlang/latest/reference/tmux_stream-close-1/

```
close(Subscription)
-spec close(subscription()) -> ok | {error, map()}.
```

Close this subscription. Closing the final subscription waits for confirmed retirement of its control client. A cleanup error leaves retirement running and permits another close attempt.

## Parameters

- `Subscription` (`subscription()`)
