WorkersConfig constructor

WorkersConfig({
  1. required int numberOfWorkers,
  2. String workerScriptUrl = './packages/wasm_run/assets/wasm.worker.js',
  3. String? workerMapImportsScriptUrl,
  4. void onWorkerMessage(
    1. Object?
    )?,
})

Configuration for spawning workers.

Implementation

WorkersConfig({
  required this.numberOfWorkers,
  this.workerScriptUrl = './packages/wasm_run/assets/wasm.worker.js',
  this.workerMapImportsScriptUrl,
  this.onWorkerMessage,
});