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
| 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 | /** |
nothing calls this directly
no test coverage detected