定时器改版优化

This commit is contained in:
Yun
2025-09-17 19:12:55 +08:00
parent f11fbd1703
commit 4a131290d6
5 changed files with 189 additions and 94 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ func TestSimpleLock(t *testing.T) {
t.Log(err)
return
}
if l.Lock() {
if b, _ := l.Lock(); b {
fmt.Println("lock success")
l.Unlock()
}