ref

Pref
Bun

Symbol

WorkerOptions.ref

ref?: boolean

When true, the worker will keep the parent thread alive until the worker is terminated or unref'd. When false, the worker will not keep the parent thread alive.

By default, this is false.