Closing a channel in Go indicates _______.

  • That it is blocked
  • That it is empty
  • That it is full
  • That it will no longer be used
Closing a channel in Go indicates that it will no longer be used for sending data. It's a signal to receivers that no more data will be sent, and it enables them to detect when all the data has been received. It's a crucial mechanism for communication and synchronization between goroutines.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *