# Libtmux_eio.Subscription.next

- **Module:** Libtmux_eio
- **Package:** libtmux-eio
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/eio/libtmux_eio.mli#L101
- **Public owner:** Libtmux_eio
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux_eio-subscription-next/

```
val next :
  ?timeout:float ->
  t -> (Libtmux.Output.event option, Libtmux.Error.t) result
```

Await one event, defaulting to a one-second deadline. `None` follows a consumed End. A deadline keeps the subscription active. Eio cancellation closes it, releases its lane when unused, and propagates.

## Parameters

- `timeout?` (`float`)
- `arg1` (`t`)
