worker.ref()
与 unref() 相反,如果它是唯一剩下的活动句柄(默认行为),则在之前 unref() worker 上调用 ref() 不会让程序退出。如果工作线程是 ref() 的,则再次调用 ref() 没有效果。
¥Opposite of unref(), calling ref() on a previously unref()ed worker does
not let the program exit if it's the only active handle left (the default
behavior). If the worker is ref()ed, calling ref() again has
no effect.