# Libtmux_eio.Subscription.close

- **Module:** Libtmux_eio
- **Package:** libtmux-eio
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/eio/libtmux_eio.mli#L107
- **Public owner:** Libtmux_eio
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux_eio-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. Concurrent calls join the same cleanup, including reaping a lane when it becomes unused; later calls retain cleanup failures. Borrowed clients and the daemon remain alive. [`poll`](/en/ocaml/latest/reference/libtmux_eio-subscription-poll/) can still read the terminal event.

## Parameters

- `arg1` (`t`)
