guard / listen

The Listen gem listens to file modifications and notifies you about the changes.
https://rubygems.org/gems/listen
MIT License
1.92k stars 245 forks source link

Remove Listen::Internals::ThreadPool #483

Closed ioquatix closed 3 years ago

ioquatix commented 3 years ago

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.

Partially addresses #476.