On this page
server.channels.Server.signal_channel
- Module
- server.channels
- Declared in
- Server
- Package
- libtmux
- Source
- crates/libtmux/src/server/channels.rs
-
Signal a
wait-forchannel, releasing anything waiting on it.Server::wait_for_channelis the other half, and either order works: tmux keeps a signal nobody is waiting on, so a command that finishes before its watcher starts does not lose the race. The latch releases one wait, and one signal releases every waiter already there. Signalling the same channel twice before a wait clears the latch, so this operation is not idempotent.Signalling is not scoped to a pane or a session. The channel is a name on the server, so anything that can reach the socket can signal it, which is what makes it useful for telling an orchestrator that a command inside a pane is done.
Errors
Returns an error when tmux refuses the channel name.
Discussed in Waiting and retrying
0 declared, 0 inherited