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

New Post: help with task cancellation

$
0
0
roschuma:

I appreciate your reply. I'm glad the idea of brute-force serialization (using the mutex) came from someone other than me. :)> I've considered it.

However, I think there is a better answer for me in the link you provided. The Composing Tasks section offers the observe_all_exceptions() function, which in as many words is exactly what I need to do. I think I will be able to cancel all pending tasks through a cancellation_token then use that function to clean up the ensuing exceptions before returning. It will also handle any other exceptions thrown by the remaining tasks as I'm setting up to exit with the first exception.

Thanks again for the link. It's the single most informative page I've seen in the PPL documentation so far.

I'll post again to wrap up once I've determined that I've solved my problem.

-evan

Viewing all articles
Browse latest Browse all 4845

Trending Articles



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