From e7c042505f72eba535e8682bc4805435552f0d9e Mon Sep 17 00:00:00 2001 From: qydysky Date: Sun, 3 Dec 2023 12:14:18 +0800 Subject: [PATCH] 1 --- ctx/Ctx.go | 1 + 1 file changed, 1 insertion(+) 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] { -- 2.39.2