title: How to integrate WinRT asynchronous tasks into existing synchronous libraries?
body: <p>We have a long established, greatly multiplatform codebase that is currently being ported to WinRT. One of the challenges we're facing is how to handle WinRT's asynchronous style. </p>
  
  <p>For example, we are unsure how to handle WinRT's async file operations. Unsurprisingly, our codebase's API is synchronous. A typical example is our File::Open function which attempts to open a file and return with success or failure. How can we call WinRT functions and yet keep the behavior of our functions the same? </p>
  
  <p>Note that we are unfortunately constrained by legacy: we cannot simply go and change the API to become asynchronous.</p>
  
  <p>Thanks!</p>