Server.wait(for:)
- Declared in
- Server
- Package
- libtmux-swift
- Source
- Sources/LibTmux/Wait.swift
- Other languages
- PythonRuby Lua TypeScript RustGo Java .NETC++
-
Blocks until something signals
channel.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.
- Raises
Discussed in Capturing output · Waiting and retrying
In other ports Wait for, signal or lock a channel
- Python
libtmux.Server.wait_for - Ruby
LibTmux::Server#wait_for - Lua No source-verified Lua equivalent is recorded for this operation.
- TypeScript no equivalent on
Server - Rust
server.Server.wait_for_channel - Go
tmux.Server.WaitFor - Java no equivalent on
Server - .NET
LibTmux.Server.WaitForAsync - C++
libtmux::Server::wait_for
- Throws:
0 declared, 0 inherited