# LibTmux::Async::Server#wait_for

- **Module:** LibTmux::Async::Server#
- **Package:** libtmux-async
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/c6d9d21771828e583692ca899ed817f9640d6a55/gems/libtmux/lib/libtmux/operations.rb#L47
- **Page:** https://libtmux.org/en/ruby/latest/reference/libtmux-async-server-wait_for/

```
LibTmux::Async::Server#wait_for(arg1: ::String, action: :wait | :signal | :lock | :unlock = nil, timeout: ::Numeric = nil, cancel: untyped = nil) -> ::LibTmux::CommandResult
```

Retiring the client cannot remove a dispatched waiter from tmux's queue.

Behavior contract: Wait channels.
