February 9, 2020

Channel Axioms

  • A send to a nil channel blocks forever.
  • A receive from a nil channel blocks forever.
  • A send to a closed channel panics.
  • A receive from a closed channel returns the zero value immediately.

via Dave Cheney

© 2018-20, Ian Cahoon