# libtmux::CommandRuntime

- **Module:** libtmux
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/393d4b0ad666f18a6581f1eb281741a75a7503f0/include/libtmux/async.hpp#L131
- **Page:** https://libtmux.org/en/cxx/latest/reference/libtmux-commandruntime/

Move-only owner of the transport threads, admission bound, and observations.

Runtime operations, including `try_submit`, may race; move and destruction may not.

## Members

- `start` (method): Starts the bounded transport; startup failures are not-started values.
- `CommandRuntime` (method)
- `~CommandRuntime` (method): Stops and joins owned threads; pending observers are discarded, not invoked.
- `request_stop` (method): Stops admission and requests cancellation without waiting.
- `close` (method): Joins every owned thread without invoking or discarding observers, and does not return or throw until every blocked `wait_ready` caller has left.
- `snapshot` (method): Reads one lock-consistent instant without waiting for work.
- `wait_ready` (method): Waits for a ready observer without invoking it.
- `wait_ready_for` (method)
- `dispatch_ready` (method): Runs one snapshot of ready observers on this thread and returns its count.
- `discard_ready` (method): Releases ready observer obligations without invoking callbacks.
- `ready_fd` (method)
