It took to develop a project on js uwp, and now it’s not clear to me how the functions work like Windows.Storage.StorageFile.getFileFromApplicationUriAsync(uri) , and it’s unclear exactly what the return type of such functions is IAsyncOperation, so digging deeper (IntelliSense and google to help), I found that an instance of this class has a done () function, but I did not understand its purpose. The getResult () function was also interesting, but when I tried to use it, I got an error saying that "this property or method was not found" (something like that).

I would like to get answers to questions such as: What is IAsyncOperation? Why is the return value IAsyncOperation? What is the purpose and application of the methods of this class?

I myself use Visual Studio 2017

    0