Skip to main content

registerWorker

FitFileViewer - API Documentation v29.4.0


FitFileViewer - API Documentation / utils/app/lifecycle/resourceManager / registerWorker

Variable: registerWorker()

registerWorker: (worker: Worker, options?: { owner?: string; id?: string; }) => string

Defined in: utils/app/lifecycle/resourceManager.js:452

Register a web worker for automatic cleanup

Parameters​

worker​

Worker

Web Worker instance

options?​

Optional configuration

owner?​

string

Owner/component identifier

id?​

string

Custom ID

Returns​

string

Resource ID