any way to check if deadline_timer is active? e.g. if it's in async_wait state and wasn't cancelled?
The handler for the timeout will be called with an error condition if the timer was canceled (as well as a normal timeout). So could you not simply set a bool before calling async_wait
and then reset that in the handler if the error condition is set?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With