Skip to content

Commit

Permalink
util: add a sleep for for
Browse files Browse the repository at this point in the history
  • Loading branch information
zimulala authored and ti-chi-bot committed Feb 10, 2023
1 parent c34238b commit 216e4b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/gpool/spmc/spmcpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ func (p *Pool[T, U, C, CT, TF]) ReleaseAndWait() {
if p.Running() == 0 && p.heartbeatDone.Load() && p.waitingTask.Load() == 0 {
return
}
time.Sleep(5 * time.Millisecond)
}
}

Expand Down

0 comments on commit 216e4b2

Please sign in to comment.