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
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