parallel
parallel copied to clipboard
Creation of singletons can cause worker hangs
Creating singletons which register watchers inside of workers causes hangs, as the EventLoop::run() block never exits even when a shutdown is triggered.
Singletons which register watchers should be marking those watchers as unreferenced. This is exactly the sort of thing for which an unreferenced state exists.