locked
Wait for async promise in html5/js apps

    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

    thx.!!

    ps:I know the existence of 

    WinJS.Application.local.readText().then(); 

    but that is not what I want..


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

Answers

  • 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