Hello, I have promise-chan
s that I create (but don't close) in a handler. Can this be a cause of a memory leak?
Not in and of itself
Channels and promise-chans are not global things, and are GC able without being closed
thanks! i'm experiencing some weird behavior and trying to rule out possibilities 🙂
Timeout channels can cause retaining more memory then expected, because the time keeper(which is global) has to maintain a reference to timeout channels until they expire, and the timeout channel will keep any go blocks waiting on them, and any memory they using from being gc'ed
gotcha, that makes sense! thanks for the explanation