mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 20:19:41 +00:00
Async JavascriptBinding - Add support for returning Task (#2771)
* Async JavascriptBinding - Add support for returning Task Remove Parallel Task execution code from MethodRunnerQueue Add ParallelMethodRunnerQueue - For the new code path the Func is executed, if the Result is a generic Task we wait for it's completion - If the task is not generic then we return immediately This is only enabled when CefSharpSettings.ConcurrentTaskExecution = true; * MethodRunnerQueue - Display error message when method returns Task * ParallelMethodRunnerQueue - Rename to ConcurrentMethodRunnerQueue * MethodRunnerQueue - Improve formatting of error message when method returns Task * Async JavascriptBinding Return Task - Add Basic xUnit Test Very quick test, needs to be refined a little. The basics are working as expected. * Add Binding Test Async Task Example to the WPF Example menu * Async JSB Task - Add additional tests and improve error messaging
This commit is contained in:
@@ -155,6 +155,7 @@
|
||||
<Content Include="Resources\assets\js\shBrushCSharp.js" />
|
||||
<None Include="Resources\assets\js\shBrushJScript.js" />
|
||||
<Content Include="Resources\assets\js\shCore.js" />
|
||||
<Content Include="Resources\BindingTestsAsyncTask.html" />
|
||||
<Content Include="Resources\BindingTestSingle.html" />
|
||||
<Content Include="Resources\DragDropCursorsTest.html" />
|
||||
<Content Include="Resources\JavascriptCallbackTest.html" />
|
||||
|
||||
Reference in New Issue
Block a user