CoreWebView2Frame.DedicatedWorkerCreated Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Subscribe to this event that gets raised when a new dedicated worker is created from an iframe.
A Dedicated Worker is a type of web worker that allows you to run Javascript
code in the background without blocking the main thread, making them useful
for tasks like heavy computations, data processing, and parallel execution.
It is "dedicated" because it is linked to a single parent document and cannot
be shared with other scripts.
This event is raised when a web application creates a dedicated worker using the
`new Worker("/worker.js")` method. See the
[Worker](https://developer.mozilla.org/docs/Web/API/Worker/Worker)
for more information.
public event EventHandler<Microsoft.Web.WebView2.Core.CoreWebView2DedicatedWorkerCreatedEventArgs> DedicatedWorkerCreated;
member this.DedicatedWorkerCreated : EventHandler<Microsoft.Web.WebView2.Core.CoreWebView2DedicatedWorkerCreatedEventArgs>
Public Custom Event DedicatedWorkerCreated As EventHandler(Of CoreWebView2DedicatedWorkerCreatedEventArgs)