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

Function cancel

include/boost/asio/basic_deadline_timer.hpp:350–356  ·  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

348 * error code that indicates the successful completion of the wait operation.
349 */
350 std::size_t cancel()
351 {
352 boost::system::error_code ec;
353 std::size_t s = impl_.get_service().cancel(impl_.get_implementation(), ec);
354 boost::asio::detail::throw_error(ec, "cancel");
355 return s;
356 }
357
358 /// Cancel any asynchronous operations that are waiting on the timer.
359 /**

Callers

nothing calls this directly

Calls 2

throw_errorFunction · 0.85
cancelMethod · 0.45

Tested by

no test coverage detected