You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// You can edit this code!// Click here and start typing.package main
import (
"fmt""time"
)
funcmain() {
t:=*time.NewTicker(time.Second*60)
t.Reset(time.Second*60)
fmt.Println("Hello, 世界")
}
What did you see happen?
The program freeze, include can't access pprof from http server, but when I remove * from NewTicker or use go 1.22, it's normal running.
What did you expect to see?
Normal running or same behavior
of go1.22.
The text was updated successfully, but these errors were encountered:
Asutorufa
changed the title
go1.23 time.NewTicker Reset make all program freeze
go1.23 time.NewTicker Reset make program freeze
Jan 8, 2025
Go version
go1.23.4 linux/amd64
Output of
go env
in your module/workspace:What did you do?
https://go.dev/play/p/J1FvNVNhGUo
What did you see happen?
The program freeze, include can't access pprof from http server, but when I remove * from NewTicker or use go 1.22, it's normal running.
What did you expect to see?
Normal running or same behavior
of go1.22.
The text was updated successfully, but these errors were encountered: