# control.ControlMode.next_event

- **Module:** control.ControlMode
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/control.rs#L596
- **Page:** https://libtmux.org/en/rs/latest/reference/control-controlmode-next_event/

```
control.ControlMode.next_event(mut) -> Option<Result<Event, Error>>
```

Return the next notification or terminal error, then `None`.

See [`ControlEvents::next_event`] for termination.

# Cancel safety

Nothing happened: a dropped call consumes no event.
