]> 127.0.0.1 Git - part/.git/commitdiff
1 v0.28.20231203041727
authorqydysky <qydysky@foxmail.com>
Sun, 3 Dec 2023 04:14:18 +0000 (12:14 +0800)
committerqydysky <qydysky@foxmail.com>
Sun, 3 Dec 2023 04:14:18 +0000 (12:14 +0800)
ctx/Ctx.go

index af11410294452444c5852bb0a134e6f65c7eba1c..db0174ef422dd0bba3e5c54ae2cf65ca17556cec 100644 (file)
@@ -64,6 +64,7 @@ func WithWait(sctx context.Context, planNum int32, to ...time.Duration) (dctx co
                        if len(to) > 0 && time.Since(be) > to[0] {
                                return ErrWaitTo
                        }
+                       time.Sleep(time.Millisecond * 100)
                        runtime.Gosched()
                }
                if len(to) > 0 && time.Since(be) > to[0] {