Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Function template async_execute

boost::process::v2::async_execute — Execute a process asynchronously.

Synopsis

// In header: <boost/process/v2/execute.hpp>


template<typename Executor = boost::asio::any_io_executor, 
         Token WaitHandler DEFAULT_TYPE> 
   async_execute(basic_process< Executor > proc, 
                 WaitHandler &&handler  DEFAULT);

Description

This function asynchronously for a process to complete.

Cancelling the execution will signal the child process to exit with the following intepretations:

  • cancellation_type::total -> interrupt

  • cancellation_type::partial -> request_exit

  • cancellation_type::terminal -> terminate

It is to note that async_execute will us the lowest seelected cancellation type. A subprocess might ignore anything not terminal.


PrevUpHomeNext