reactor / reactor-core

Non-Blocking Reactive Foundation for the JVM
http://projectreactor.io
Apache License 2.0
4.93k stars 1.2k forks source link

Dispose TimedRunnable upon TimedWorker shutdown #3856

Closed chemicL closed 2 months ago

chemicL commented 2 months ago

The TimedRunnable that is created using a TimedWorker was not disposed upon Worker shutdown. That led the pending tasks timers to run forever, causing leaks.

This change keeps track of created TimedRunnable instances by the TimedWorker, allowing to dispose the resources responsibly.

Resolves #3844

chemicL commented 2 months ago

@violetagg thank you for the review :)