# Libtmux_unix.Subscription.close

- **Module:** Libtmux_unix
- **Package:** libtmux-unix
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/unix/libtmux_unix.mli#L166
- **Public owner:** Libtmux_unix
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux_unix-subscription-close/

```
val close : t -> (unit, Libtmux.Error.t) result
```

End an active subscription with Cancelled and discard pending data. Preserve an already ended subscription's terminal reason. Release and reap an unused lane; later calls retain cleanup failures. Does not stop the daemon. [`poll`](/en/ocaml/latest/reference/libtmux_unix-subscription-poll/) can still read the terminal event.

## Parameters

- `arg1` (`t`)
