import {WorkerPool} from '@xeokit/xeokit-sdk/src/viewer/scene/utils/WorkerPool.js'
WorkerPool
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
pool: * |
|
public |
queue: *[] |
|
public |
|
|
public |
|
|
public |
workers: *[] |
|
public |
workersResolve: *[] |
Method Summary
Public Methods | ||
public |
destroy() |
|
public |
postMessage(msg: *, transfer: *): * |
|
public |
setWorkerCreator(workerCreator: *) |
|
public |
setWorkerLimit(pool: *) |
Public Constructors
public constructor() source
Public Members
public pool: * source
public queue: *[] source
public workerCreator: * source
public workers: *[] source
public workersResolve: *[] source
Public Methods
public destroy() source
public postMessage(msg: *, transfer: *): * source
Params:
Name | Type | Attribute | Description |
msg | * | ||
transfer | * |
Return:
* |
public setWorkerCreator(workerCreator: *) source
Params:
Name | Type | Attribute | Description |
workerCreator | * |
public setWorkerLimit(pool: *) source
Params:
Name | Type | Attribute | Description |
pool | * |