worker.resourceLimits
- 类型: <Object>
为此 Worker 线程提供 JS 引擎资源限制的集合。如果在 Worker 构造函数中传入了 resourceLimits 选项,则此处与其值相匹配。
🌐 Provides the set of JS engine resource constraints for this Worker thread.
If the resourceLimits option was passed to the Worker constructor,
this matches its values.
如果工作线程已经停止,则返回值是空对象。
🌐 If the worker has stopped, the return value is an empty object.