Wait for async promise in html5/js apps RRS feed

  • Question

  • Sometimes I need to get the promise result  immediately.

    Is there any way to wait for the promise result?

    like this:

    //var s=WinJS.Application.local.readText()

    //get the s and go on


    ps:I know the existence of 


    but that is not what I want..

    • Edited by czlczlczl Tuesday, November 19, 2013 7:13 AM
    Tuesday, November 19, 2013 7:10 AM


  • no there isnt something like that. you need to use the then

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    • Marked as answer by czlczlczl Wednesday, November 20, 2013 2:54 AM
    Tuesday, November 19, 2013 7:23 AM