How to process items in the background


  • Whats the recommended way to run background processing? I understand there is no real threading in JS apps just some setTimeout "poor mans threading".

    Does WinRT come with real threading support that could be used in a Promise?

    Currently I am doing it like this:

    new Promise(function(done,error,progress) {
      setTimeout(function() {
         //for all my items do some processing
      }, 0);

    Is this the way it should be done in WinJS apps?

    Tuesday, February 14, 2012 6:26 PM


All replies