You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
timer.C这个chan在CancelJob之后没有关闭。
timer.Stop函数官方注释表示“ Stop does not close the channel”,所以导致
go func() {
// wait...
//but if job cancel,con't recive anything;
<-j.JTimer.timer.C
// run job function
j.run()
// set job done
jobSet.setJobDone(j.ID)
}()
这里一直等待,不会回收线程。
The text was updated successfully, but these errors were encountered:
timer.C这个chan在CancelJob之后没有关闭。
timer.Stop函数官方注释表示“ Stop does not close the channel”,所以导致
这里一直等待,不会回收线程。
The text was updated successfully, but these errors were encountered: