broadcastChannel.unref()


在 BroadcastChannel 上调用 unref() 可以让线程退出,如果这是事件系统中唯一的活动句柄。如果 BroadcastChannel 已经被 unref(),再次调用 unref() 不会有任何效果。

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