WorkerPool
verb.exe.WorkerPool
CLASS
WorkerPool
provides a pool of WebWorker objects for concurrent evaluation in JavaScript
constructor
METHOD
new WorkerPool(numThreads : Int, fileName : String, verb.js" : undefined)
Create a new WorkerPool
params
- the number of
Worker
threads to form - the filename of verb's javascript file - defaults to "verb.js". The final path is formed by concatenating
WorkerPool.basePath
and this.
addWork
METHOD
addWork(className : String, methodName : String, args : Array<Dynamic>, callback : Dynamic) : Void
Add work to perform to the queue
basePath
PROPERTY
basePath
The base path to look for verb's source code