# libtmux::CommandOperation

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

Move-only result handle for one admitted command; its methods are not concurrent.

Destruction releases its result without cancelling the command. It may outlive the runtime without retaining runtime threads.

## Members

- `CommandOperation` (method)
- `~CommandOperation` (method)
- `wait` (method): Consumes the same bounded answer `Server::run` gives.
- `wait_until` (method): True means the result can be taken; false means only this wait expired.
- `wait_for` (method)
- `detach` (method): Releases the result obligation without cancelling the command.
- `request_cancel` (method): Requests withdrawal; false means no live transport cancellation remains.
