Files
utils/timer/example_test.go
2023-09-17 18:05:01 +08:00

23 lines
322 B
Go

package timer_test
import (
"context"
"fmt"
"code.yun.ink/open/utils/timer"
)
// 示例测试
func exampleDemo(ctx context.Context) bool {
fmt.Println("fff")
return false
}
func ExampleB() {
ctx := context.Background()
timer.InitTimer(ctx)
timer.AddToTimer(1, exampleDemo)
// OutPut:
}