Is there any way to get the response from ExecuteScriptAsync synchronously. #3935
Unanswered
JitinKansal
asked this question in
Q&A
Replies: 2 comments
-
Please suggest the solution for this issue it's urgent. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey @JitinKansal - thanks for the question. Which is the part that you need returned synchronously? Do you need ExecuteScriptAsync to be sync, or is the await ok there? In general sync is going to be difficult to achieve because the WebView2 is out-of-process. Turning it sync would involve pumping messages until you get a return value. We definitely recommend using async programming techniques if possible. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem:- we are able to call the JS function at server end from our application and also we are getting the response/return value in Asynchronously But we need the value synchronously. So, Is there any way to do that?
I am using webview2 control and using this code for calling the function of JS at server end.
And this is the JS code at server end
Beta Was this translation helpful? Give feedback.
All reactions