flywave-mapview.concurrenttilerfacade.getworkerset
Home > @flywave/flywave-mapview > ConcurrentTilerFacade > getWorkerSet
ConcurrentTilerFacade.getWorkerSet() method
Returns a [[ConcurrentWorkerSet]] instance based on the script URL specified.
Signature:
static getWorkerSet(scriptUrl?: string, workerCount?: number, workerConnectionTimeout?: number): ConcurrentWorkerSet;
Parameters
Parameter | Type | Description |
|---|---|---|
scriptUrl | string | (Optional) The optional URL with the workers' script. If not specified, the function uses [[defaultScriptUrl]] instead. |
workerCount | number | (Optional) The number of web workers to use. |
workerConnectionTimeout | number | (Optional) Timeout in seconds to connect to the web worker. |
Returns:
ConcurrentWorkerSet