Server.try_submit
Admit one command to an explicit bounded runtime without waiting for it.
Source and package
- Qualified name
-
libtmux::Server:: try _submit - Namespace
- libtmux
- Declared in
Server- Package
- libtmux-cxx
- Source
- include/libtmux/server.hpp
- [[
C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.]] expected<CommandOperation , CommandFailure > try_submit( CommandRuntime & runtime, CommandRequest command, std::optional <std::chrono:: > timeout = {}, std::milliseconds optional <std::size > output_t _limit = {}) const; -
Description#
A refusal before admission is returned here; an admitted command carries every later transport or tmux failure in its operation.
Admission does not wait for a slot, but the daemon's release is asked before it. A submission to an endpoint whose daemon has not answered yet can block the calling thread on that probe, up to the command's timeout. An empty command is a validation error.
- Parameters