Skip to main content
Worker.prototype.resourceLimits - worker_threads - Node documentation
property Worker.prototype.resourceLimits

Usage in Deno

import { Worker } from "node:worker_threads";

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.

Type

ResourceLimits | undefined
Back to top