== `execute.hpp` [#execute] The execute header provides two error categories: [source,cpp] ---- // Run a process and wait for it to complete. template int execute(basic_process proc); template int execute(basic_process proc, error_code & ec) // Execute a process asynchronously template> auto async_execute(basic_process proc, WaitHandler && handler = net::default_completion_token_t()); ---- The `async_execute` function asynchronously for a process to complete. Cancelling the execution will signal the child process to exit with the following interpretations: - `cancellation_type::total` -> interrupt - `cancellation_type::partial` -> request_exit - `cancellation_type::terminal` -> terminate It is to note that `async_execute` will use the lowest selected cancellation type. A subprocess might ignore anything not terminal.