Feature Request - Add EvaluateScriptAsync CancellationToken overload
Currently it is not possible to specify a CancellationToken for canceling the EvaluateScriptAsync task. Therefore, when executing a long-running javascript method it is not possible to cancel it.
Describe the solution you'd like: Extend the WebBrowserExtensions.EvaluateScriptAsync() method with the possibility to specifiy a CancellationToken.
Therefore, when executing a long-running javascript method it is not possible to cancel it.
Adding an overload with a CancellationToken wouldn't actually allow for cancellation of running Javascript, it would just cancel the Task and the result would be ignored.
JavaScript is executed in a separate Render process that only has a single thread. The CEF API doesn't allow for cancellation.