CoreWebView2.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.
DedicatedWorkerCreated is raised when a new dedicated worker is created.
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
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)