In the previous article I presented a helper library for reading and writing to the file system using the new Windows Runtime asynchronous file APIs.
One downside of the code I presented is that the actual reading and writing was still happening on the main UI thread. While this may not be a problem in a simple application, it is undesirable for complex documents.
The challenge is that we still need to be on the UI thread when we collect the data we want to save, but the writing itself could be on a background thread.
In this article I will cover a way to extend the API I presented previously, to allowing reading and writing via a background thread.