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

Method cancel

include/boost/asio/basic_waitable_timer.hpp:408–414  ·  view source on GitHub ↗

Cancel any asynchronous operations that are waiting on the timer. * This function forces the completion of any pending asynchronous wait * operations against the timer. The handler for each cancelled operation will * be invoked with the boost::asio::error::operation_aborted error code. * * Cancelling the timer does not change the expiry time. * * @return The number of asynchronou

Source from the content-addressed store, hash-verified

406 * error code that indicates the successful completion of the wait operation.
407 */
408 std::size_t cancel()
409 {
410 boost::system::error_code ec;
411 std::size_t s = impl_.get_service().cancel(impl_.get_implementation(), ec);
412 boost::asio::detail::throw_error(ec, "cancel");
413 return s;
414 }
415
416 /// Cancels one asynchronous operation that is waiting on the timer.
417 /**

Callers

nothing calls this directly

Calls 1

throw_errorFunction · 0.85

Tested by

no test coverage detected