Destroys the timer.
~basic_deadline_timer();
This function destroys the timer, cancelling any outstanding asynchronous wait operations associated with the timer as if by calling cancel.
cancel