mihomo/common/contextutils/afterfunc_go121.go
wwqgtxx bfd06ebad0
Some checks failed
Trigger CMFA Update / trigger-CMFA-update (push) Failing after 1s
chore: rebuild SetupContextForConn with context.AfterFunc
2025-04-10 01:29:55 +08:00

10 lines
162 B
Go

//go:build go1.21
package contextutils
import "context"
func AfterFunc(ctx context.Context, f func()) (stop func() bool) {
return context.AfterFunc(ctx, f)
}