# io.github.libtmux.WakeReason.WakeReason

- **Module:** io.github.libtmux.WakeReason
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** enum
- **Source:** https://github.com/libtmux/libtmux-java/blob/c3517519ee799428a809ce6deb1708c8be289cd1/libtmux/src/main/java/io/github/libtmux/WakeReason.java#L10
- **Page:** https://libtmux.org/reference/java/io-github-libtmux-wakereason-wakereason/

Why a wait on a tmux channel ended.

<p>An enum rather than a boolean, and rather than nothing at all, because tmux's own
{@code wait-for} cannot distinguish these: it exits successfully both when the channel is
signalled and when the server dies underneath the waiter.

## Members

- `SIGNALLED` (constant) — The channel was signalled.
- `TIMED_OUT` (constant) — Nothing signalled the channel before the caller's deadline.
- `SERVER_GONE` (constant) — The server is gone. tmux reports this as a successful wake, so it is checked for rather than believed; a caller cannot rely on anything the wait was guarding.
