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

New Post: Unable to cancel task

$
0
0
Why not make a task to construct X? Then the caller must call ".get" in order to get the X, which makes the fact that it blocks explicit. The task will run in the background, so the caller can do whatever it likes in the foreground until it decides to block on the X finishing up. At that point, you'll have guaranteed that X is done blocking, so none of its methods need to be synch-blockers anymore.

Viewing all articles
Browse latest Browse all 4845

Trending Articles



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