libtmux Reference MCP Search
On this page

libtmux.Server.wait_for

View as Markdown

Module
libtmux
Declared in
Server
Package
libtmux
Source
src/libtmux/server.py
wait_for ( self , channel : str , lock : bool | None = None , unlock : bool | None = None , set_flag : bool | None = None ) None
method [source]
method [source]
wait_for

Wait for, signal, or lock a channel via $ tmux wait-for.

Examples

>>> server.new_session(session_name='wait_test')
Session(...)
>>> server.wait_for('test_channel', set_flag=True)
Parameters
  • channel ( str ) – Channel name.

  • lock ( bool | None ) – Lock the channel (-L flag).

  • unlock ( bool | None ) – Unlock the channel (-U flag).

  • set_flag ( bool | None ) – Set the channel flag and wake waiters (-S flag).

Discussed in Waiting and retrying

0 declared, 0 inherited

Esc

Type to search.