Worker constructor
Worker(
- String path,
- WorkerOptions options
Creates a new web worker that executes the script at the given path
,
using the provided options
.
path
: A string URL pointing to the worker script.options
: Optional settings liketype: 'module'
for ES module workers.
Implementation
external factory Worker(String path, WorkerOptions options);