Skip to content

Commit c3ae55e

Browse files
committed
docs: add example in README
1 parent a5a1984 commit c3ae55e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ import (
3333
)
3434

3535
func main() {
36-
var l sync.RWMutex
37-
// init a new instance
38-
tk := tik.New()
36+
var l sync.RWMutex
37+
// init a new instance
38+
tk := tik.New()
3939
i := 0
4040
cb := func() {
4141
l.Lock()
4242
i++
4343
l.Unlock()
4444
}
45-
// schedule to run cb in 500ms
45+
// schedule to run cb in 500ms
4646
to := tk.Schedule(500, cb)
4747

4848
if !to.Pending() {

0 commit comments

Comments
 (0)