Skip to content

Latest commit

 

History

History
124 lines (69 loc) · 2.55 KB

WorkerManager.md

File metadata and controls

124 lines (69 loc) · 2.55 KB

opfsdb / Exports / WorkerManager

Class: WorkerManager

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new WorkerManager(workerUrl, sharedWorkerUrl, mode?): WorkerManager

Parameters

Name Type Default value
workerUrl string undefined
sharedWorkerUrl string undefined
mode "classic" | "module" 'module'

Returns

WorkerManager

Defined in

lib/WorkerManager.ts:7

Properties

instance

Private instance: Worker

Defined in

lib/WorkerManager.ts:5


mode

Private mode: "classic" | "module" = 'module'

Defined in

lib/WorkerManager.ts:10


sharedWorkerUrl

Private sharedWorkerUrl: string

Defined in

lib/WorkerManager.ts:9


workerUrl

Private workerUrl: string

Defined in

lib/WorkerManager.ts:8

Methods

getWorker

getWorker(): Worker

Returns

Worker

Defined in

lib/WorkerManager.ts:13


sendCommand

sendCommand<Command, ReturnType>(command): Promise<void | string[] | ReturnType | ReturnType[]>

Type parameters

Name Type
Command extends ICommandInputs<ReturnType>
ReturnType extends IBasicRecord = IBasicRecord

Parameters

Name Type
command Command

Returns

Promise<void | string[] | ReturnType | ReturnType[]>

Defined in

lib/WorkerManager.ts:27