Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: How to make regularly-scheduled work cancelable

$
0
0
Hi Jason,

Yes you are correct, I see in the documentation :). I hadn't considered the task would be transitioning to completed instead of cancelled in that case.

I agree about the DoWork() overlapping I was just pointing it out.

I do think you code would be significantly reduced in complexity if you just used the timer. It does mean if you try to cancel the timer there is a possibility that DoWork() has started and you will have to wait for it complete before you can destroy your class.

Steve

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>