mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-09-20 12:35:59 +08:00
10 lines
162 B
Go
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)
|
||
|
}
|