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

Method cancel_one

include/boost/asio/basic_waitable_timer.hpp:440–447  ·  view source on GitHub ↗

Cancels one asynchronous operation that is waiting on the timer. * This function forces the completion of one pending asynchronous wait * operation against the timer. Handlers are cancelled in FIFO order. The * handler for the cancelled operation will be invoked with the * boost::asio::error::operation_aborted error code. * * Cancelling the timer does not change the expiry time.

Source from the content-addressed store, hash-verified

438 * error code that indicates the successful completion of the wait operation.
439 */
440 std::size_t cancel_one()
441 {
442 boost::system::error_code ec;
443 std::size_t s = impl_.get_service().cancel_one(
444 impl_.get_implementation(), ec);
445 boost::asio::detail::throw_error(ec, "cancel_one");
446 return s;
447 }
448
449 /// Get the timer's expiry time as an absolute time.
450 /**

Callers 5

deliverMethod · 0.45
deliverMethod · 0.45
cancel_one_timerFunction · 0.45
cancel_one_timerFunction · 0.45
cancel_oneFunction · 0.45

Calls 1

throw_errorFunction · 0.85

Tested by

no test coverage detected