Why OpenAsync but return void?

Hi team,

I am encountering an issue with opening a document. The method I am using is a void function and does not support waiting. As a result, my subsequent business logic executes before the document is fully opened.

Could you suggest a way to handle this properly?

Image_9786_1733193354284


1 Reply

DS Dhanush Sekar Syncfusion Team December 3, 2024 03:48 PM UTC

Hello Tam,


The openAync method is an overloaded function designed to display a loading spinner. Therefore, if you prefer to wait and execute business logic, you may utilize the open method.


Sincerely,

Dhanush Sekar


Loader.
Up arrow icon