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