ProcessHandle class
#include <nxtio/process.hpp>
Parent-side handle to a spawned process. Cancels the child's scope on destruction so child lifetimes are bounded by their handles.
Constructors, destructors, conversion operators
-
ProcessHandle(std::
shared_ptr<ProcessState> state) explicit noexcept - ProcessHandle(const ProcessHandle&) deleted
- ProcessHandle(ProcessHandle&& other) defaulted noexcept
- ~ProcessHandle()
Public functions
- void cancel() noexcept
- Request the child to stop. Idempotent.
- auto cancelled() const → bool noexcept
- True once the underlying scope has been cancelled.
-
auto join() const → nxt::
task - Wait until the child body has exited.
- auto operator=(const ProcessHandle&) → ProcessHandle& deleted
- auto operator=(ProcessHandle&& other) → ProcessHandle& noexcept
-
auto surface() const → const tui::
Slot<tui:: AnyLayout>& noexcept - Embeddable surface — copy by value into the parent's layout tree.