From: qydysky Date: Sun, 3 Dec 2023 04:14:18 +0000 (+0800) Subject: 1 X-Git-Tag: v0.28.20231203041727 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=e7c042505f72eba535e8682bc4805435552f0d9e;p=part%2F.git 1 --- diff --git a/ctx/Ctx.go b/ctx/Ctx.go index af11410..db0174e 100644 --- a/ctx/Ctx.go +++ b/ctx/Ctx.go @@ -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] {