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
I would like to send a number of POST requests on http_client from console application. Console has only one thread.

All POST requests are followed by then, but I would want that continuation to execute on another thread, not on the main console thread, which I want to remain reserved for user i/o.

Can you provide a link to, or an example how to do that?

I know that I am expected to create a scheduler and associate it with a new thread, but frankly, the documentation doesn't make it easy to set things up in this way.

Viewing all articles
Browse latest Browse all 4845

Trending Articles



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