# control.ControlSender.pause_after

- **Module:** control.ControlSender
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/control.rs#L896
- **Page:** https://libtmux.org/reference/rs/control-controlsender-pause_after/

```
control.ControlSender.pause_after(self, behind: Duration) -> Result<(), Error>
```

Have tmux pause a pane rather than let this connection fall behind.

Without this, tmux disconnects a control client that falls more than
five minutes behind, losing everything the connection was for. With it,
tmux instead reports [`Event::Paused`] for the offending pane and keeps
the connection, and every [`Event::Output`] becomes an
[`Event::ExtendedOutput`] carrying how far behind it was.

# Errors

Returns an error when the connection has closed or tmux refuses the
pause policy.
