Server.wait(for:)
Blocks until something signals channel.
Source and package
-
Description#
Runs in a process of its own even on a connected server, because a control client runs one command at a time: carried over the connection this would hold back every call beside it,
Server.signal(_:)included, and nothing would ever release it.- Throws:
TmuxError.serverRestartedif the server went away while this was waiting. tmux releases its waiters when it shuts down, with the same silent success a real signal produces, so the server's identity before and after is what tells a release from a departure.TmuxError.cancelledif the task was cancelled, which ends the wait without a signal.
- Throws:
tmux command#
The tmux commands behind wait(for:).
tmux C API#
The C declarations in tmux that implement these commands.
Guides#
Pages that discuss wait(for:).
In other ports#
Wait for, signal or lock a channel
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Erlang | tmux Builds a command value; construction performs no I/O. |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | no equivalent on Server |
| Rust | server |
| Go | tmux |
| Java | no equivalent on Server |
| C# | Lib |
| C++ | libtmux:: |
| OCaml | Libtmux |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |
No equivalent is recorded in Lua, PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.