Skip to main content

unref

method Worker.prototype.unref
Jump to headingWorker.prototype.unref(): void

Calling unref() on a worker allows the thread to exit if this is the only active handle in the event system. If the worker is already unref()ed calling unref() again has no effect.

Return Type Jump to heading

void
Back to top