Go

Go

Made by DeepSource

It is not possible to use time.Timer.Reset()'s return value correctly SCC-SA1025

Bug risk
Critical

It is not possible to use Reset's return value correctly, as there is a race condition between draining the channel and the new timer expiring. Reset should always be invoked on stopped or expired channels. The return value exists to preserve compatibility with existing programs.

References