RussellLuo / timingwheel

Golang implementation of Hierarchical Timing Wheels.
MIT License
657 stars 123 forks source link

Memory leaking issue after stop #49

Open JasonSongHoho opened 1 year ago

JasonSongHoho commented 1 year ago

Hi @RussellLuo

After the Timing wheel stopped, the buckets and priority queue aren't clear.

It will cause the memory leaking issue if there are a lot of unexecuted jobs.

image