G

Go Timer Leak Companion

JetBrains

gap-hunter-labs · v—

Warning on a case <-time.After(...) inside a select block in a module that targets Go before 1.23. Until Go 1.23, the Timer created by time.After is not recovered by the garbage collector until it fires, and a select inside any repeatedly-executed loop (the overwhelmingly common place a select appears) creates a new one on every iteration, leaking memory until each one's

Programming Language
Open in store ↗ id: 33876
Downloads
78
78
Rating
— ★
— ratings
Category
JetBrains Marketplace
Collected
2026-11-04
weekly snapshot

Similar in “Programming Language”