opfsdb / Exports / WorkerManager
• new WorkerManager(workerUrl
, sharedWorkerUrl
, mode?
): WorkerManager
Name | Type | Default value |
---|---|---|
workerUrl |
string |
undefined |
sharedWorkerUrl |
string |
undefined |
mode |
"classic" | "module" |
'module' |
• Private
instance: Worker
• Private
mode: "classic"
| "module"
= 'module'
• Private
sharedWorkerUrl: string
• Private
workerUrl: string
▸ getWorker(): Worker
Worker
▸ sendCommand<Command
, ReturnType
>(command
): Promise
<void
| string
[] | ReturnType
| ReturnType
[]>
Name | Type |
---|---|
Command |
extends ICommandInputs <ReturnType > |
ReturnType |
extends IBasicRecord = IBasicRecord |
Name | Type |
---|---|
command |
Command |
Promise
<void
| string
[] | ReturnType
| ReturnType
[]>