Skip to content

Is the method call from JavaScript to C# in CefSharp single-threaded? #4802

Answered by amaitland
bbbrowser1 asked this question in Q&A
Discussion options

You must be logged in to vote

Why, when making multiple calls to asyncZBrowser.execute simultaneously on the front-end Vue page, do the requests come in sequentially, and the thread IDs printed out for multiple requests are the same?

By default method calls are processed sequentially. You can switch to concurrent execution (on the thread pool) by setting the following before you create ChromiumWebBrowser instances.

CefSharpSettings.ConcurrentTaskExecution = true;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bbbrowser1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants