Listen::Internals::ThreadPool manages all listener threads. Thus the
only way to kill and subsequently garbage collect listener threads is by
calling the Listen::Internals::ThreadPool.stop method (typically done
via Listen.stop). This is a problem when individual listeners must be
stopped and abandoned for garbage collection.
This commit removes Listen::Internals::ThreadPool in favor of listener
instances managing their own threads.
Listen::Internals::ThreadPool
manages all listener threads. Thus the only way to kill and subsequently garbage collect listener threads is by calling theListen::Internals::ThreadPool.stop
method (typically done viaListen.stop
). This is a problem when individual listeners must be stopped and abandoned for garbage collection.This commit removes
Listen::Internals::ThreadPool
in favor of listener instances managing their own threads.Partially addresses #476.