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:
Alex Maitland
2019-06-08 17:21:49 +10:00
committed by GitHub
parent a1eec28f13
commit fe98124c9b
19 changed files with 587 additions and 70 deletions
+1
View File
@@ -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" />