Hi!

The documentation stands that any pending operations will be cancelled, just like calling timer.cancel().

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
Juan


On Mon, May 8, 2017 at 8:43 PM, jupiter via Boost-users <boost-users@lists.boost.org> 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@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users



--
Juan
:wq