MCPcopy Create free account
hub / github.com/boostorg/asio / cancel

Function cancel

include/boost/asio/basic_readable_pipe.hpp:432–437  ·  view source on GitHub ↗

Cancel all asynchronous operations associated with the pipe. * This function causes all outstanding asynchronous read operations to finish * immediately, and the handlers for cancelled operations will be passed the * boost::asio::error::operation_aborted error. * * @throws boost::system::system_error Thrown on failure. */

Source from the content-addressed store, hash-verified

430 * @throws boost::system::system_error Thrown on failure.
431 */
432 void cancel()
433 {
434 boost::system::error_code ec;
435 impl_.get_service().cancel(impl_.get_implementation(), ec);
436 boost::asio::detail::throw_error(ec, "cancel");
437 }
438
439 /// Cancel all asynchronous operations associated with the pipe.
440 /**

Callers

nothing calls this directly

Calls 2

throw_errorFunction · 0.85
cancelMethod · 0.45

Tested by

no test coverage detected