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

New Post: Fire and forget from console application

$
0
0
Hi Tonko,

All continuations are automatically executed on a thread pool thread, so there is no need to create your own scheduler unless you have some special needs to do something different than that. When using asynchronous APIs with a console application, the trick is not how to get work to happen on a background thread, but how to prevent the main thread from exiting: since you want the main thread to be doing I/O (console I/O, I presume), that shouldn't be too hard.


Niklas

Viewing all articles
Browse latest Browse all 4845

Latest Images

Trending Articles



Latest Images

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