locked
How to create C++ Custom 'promise' from WinRT to use in javascript

    Question

  • I'd like to implement custom promise objects using custom WinRT\C++ code (just like 'StorageFile.RenameAsync()' and many other Async method do). From the documentation it looks these objects need to implement IAsyncAction\IAsyncInfo but I havent found any C++ samples depicting the exact flow and usage of these interfaces. 

     

    Is there a sample or some reference documentation on how to expose custom WinRT objects (using IAsyncAction\IAsyncInfo) to JavaScript as 'promises'?



    Wednesday, October 19, 2011 3:29 PM

Answers

All replies