Files
timerx/example_test.go
T

22 lines
315 B
Go
Raw Normal View History

2023-08-06 01:07:29 +08:00
package timer_test
import (
"context"
"fmt"
"code.yun.ink/open/timer"
)
// 示例测试
func exampleDemo(ctx context.Context) bool {
fmt.Println("fff")
return false
}
func ExampleB() {
ctx := context.Background()
timer.InitSingle(ctx)
timer.AddToTimer(1, exampleDemo)
// OutPut:
}