locked
Asynchronously fetching n different items from my app

    Question

  • I want to collect a set of n different values from my app (for instance OS lang, locale,...) and keep them ready before a call that would consume them occurs.

    I'm trying to use create_async method to collect the values and store it somewhere before the call that consume them.

    Would you please suggest some ideas on this ?

    Thanks !!

    Thursday, May 29, 2014 2:28 PM

Answers

  • Hi Minu7!

    I'm not clear exactly what you are trying to do. For the simplest scenario, just use a task with a .then continuation that will run when the task completes. 

    If you are creating data asynchronously, and want to prevent other functions from trying to access it until it is ready to be consumed, I suggest looking at how concurrency::task_completion_event is used in the C++ SimpleBlogReader sample.

    Thursday, May 29, 2014 7:12 PM