core-async

dehli 2019-10-26T03:12:55.056800Z

Hello, I have promise-chans that I create (but don't close) in a handler. Can this be a cause of a memory leak?

2019-10-26T03:14:59.057300Z

Not in and of itself

2019-10-26T03:17:19.059400Z

Channels and promise-chans are not global things, and are GC able without being closed

dehli 2019-10-26T03:18:08.060500Z

thanks! i'm experiencing some weird behavior and trying to rule out possibilities 🙂

2019-10-26T03:21:04.064500Z

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

👍 1
❤️ 1
dehli 2019-10-26T03:23:43.066Z

gotcha, that makes sense! thanks for the explanation