Home > Back-end >  What is channel close process in 2020-10-25: go?
What is channel close process in 2020-10-25: go?

Time:10-26

What is channel close process in 2020-10-25: go? # # f greatly architects a daily topic

CodePudding user response:

1 set the channel. The closed=1
2 enumeration channel. Recvq, reset them sudog. Elem, setting sudog. Param=nil
3 enumeration channel. Sendq, set sudog. Elem=nil, setting sudog. Param=nil
4 call goready function recover all the receiver and the sender's G
  • Related