Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::asio::deadline_timer cancel and expires_from_now
From: Juan Ramírez (jramirez.uy_at_[hidden])
Date: 2017-05-09 02:02:36


The documentation
stands that any pending operations will be cancelled, just like calling

Have in mind that the handler for the cancelled operation will be called
with error_code set to boost::asio::error::operation_aborted.

Best regards

On Mon, May 8, 2017 at 8:43 PM, jupiter via Boost-users <
boost-users_at_[hidden]> wrote:

> Hi,
> Is it necessary to call the timer.cancel() before timer.expires_from_now?
> I think it is not just unnecessary, it will be a bug to call the
> timer.cancel() before timer.expires_from_now, I think that will run the
> cancel if the previous timer is not expired, is it correct?
> Thank you
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at