A wrapper around a web worker that allows scheduling tasks for a given worker,
returning results asynchronously via a promise.
The Worker is not constructed until a task is scheduled.
alias TaskProcessor
- {String} workerName The name of the worker. This is expected to be a script
in the Workers folder.
- {Number} [maximumActiveTasks=5] The maximum number of active tasks. Once exceeded,
scheduleTask will not queue any more tasks, allowing
work to be rescheduled in future frames.
A wrapper around a web worker that allows scheduling tasks for a given worker, returning results asynchronously via a promise.
The Worker is not constructed until a task is scheduled.
alias TaskProcessor
- {String} workerName The name of the worker. This is expected to be a script in the Workers folder. - {Number} [maximumActiveTasks=5] The maximum number of active tasks. Once exceeded, scheduleTask will not queue any more tasks, allowing work to be rescheduled in future frames.