Answer the question
In order to leave comments, you need to log in
What does goroutine 996 [sleep]: error mean?
I run 5 goroutines, but under certain conditions, the application crashes with about such errors, from the features it crashes when I quickly run them several times in a row, I think that the problem is due to the fact that I kill them incorrectly, but I'm not sure.
//ссылки указывают на эту
func skipF(C *Component,skip chan bool){
for {
time.Sleep(time.Millisecond*10)
if C.SkipItem == true{
C.SkipItem = false
skip <- false
return
}
}
}
//и эту горутину
func cancelF(C *appStruct.GuiComponent,cancel chan bool){
for {
time.Sleep(time.Millisecond*10)
if C.IsActive == false{
cancel <- false
return
}
}
}
Answer the question
In order to leave comments, you need to log in
This is not an error, this is a stack trace of all goroutines. Sleep means that a particular goroutine was "sleeping", waiting for a read or write
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question