locked
Should WinRT async operation project to C++11 futures? RRS feed

  • Question

  • I heard that you can "project" WinRT objects differently into various languages... so that something that is really IAsyncOperation in the runtine appears as a promise in JavaScript and an awaitable type in C#. I also heard that C++11 has added futures and promises to the standard. So, at the risk of asking a dumb question because I'm very new to both of these things, I was wondering if it made sense to project to a C++ future (or promise... whichever makes more sense)?


    Dave
    Thursday, October 13, 2011 3:33 PM

Answers

All replies

  • The developer preview doesn't project async operations with cool syntactic sugar for C++ like it does for JavaScript and C#.  They are available to C++ only via the interfaces.  We can't make any promises about what it will do in the future. 

    --Rob

    Thursday, October 13, 2011 4:03 PM
    Moderator
  • You may find this useful though:

    http://blogs.msdn.com/b/nativeconcurrency/archive/2011/09/22/windows-8-asynchrony-with-ppl.aspx

    Thanks

    Raman Sharma, Visual c++

    Thursday, October 13, 2011 4:21 PM
  • The developer preview doesn't project async operations with cool syntactic sugar for C++ like it does for JavaScript and C#.  They are available to C++ only via the interfaces.  We can't make any promises about what it will do in the future. 

    --Rob


    "can't make any promises..." pun intended? :)
    Monday, October 24, 2011 7:08 PM