locked
how to create a custom async method utilizing the promise (then) pattern like WinJS

    Question

  • I'm trying to keep my code consistent with the WinJS API and would like to be able to create a then() clause (promise) to my own methods.

    e.g. in WinRT we have:
    Windows.Storage.ApplicationData.current.temporaryFolder.createFileAsync( "filename").then(onCompleted);

    How would one go about doing that?

    Thanks

    Sunday, May 06, 2012 4:14 PM

Answers

All replies