Use atomic.Bool for the cancelled variable to avoid data race between the test goroutine (reading) and the timer callback goroutine (writing). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use atomic.Bool for the cancelled variable to avoid data race between the test goroutine (reading) and the timer callback goroutine (writing). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>