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.
| 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 | /** |
no test coverage detected