Calidad de código · plugin para JetBrains

Go Timer Leak Companion

Gratis

Code Quality / Logging

Warning on a case <-time.After(...) inside a select block: Go's documented behavior: 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 duration elapses. time.NewTimer(...) plus

68Descargas
0Estrellas en GitHub
2026-08-27Publicado
GratisPrecio

La brecha que resuelve

select { case <-time.After(5 * time.Second): ... } inside a for loop compiles fine and reads naturally — it looks like the idiomatic way to add a timeout to a select. It quietly leaks a Timer on every iteration; in a hot loop this is measured in real, documented memory growth (~200 bytes per timer as of Go 1.15, adding up fast at scale).

Datos y precio

Categoría
Calidad de código
Precio
Gratis
Plataforma
IntelliJ-family
Primera publicación
2026-08-27
ID en Marketplace
#33876
Repositorio
go-timer-leak-companion
Crecimiento
Recién publicado
¿Necesitas una herramienta así hecha para tu código?Reglas de análisis estático a medida, integración con CI/CD, distribución privada de plugins y auditorías de rendimiento para plugins IntelliJ.
Trabaja con Joel

Descargas y estrellas al 2026-10-18, actualizadas dos veces al día desde las API de JetBrains Marketplace y GitHub.