Published: 4 November 2022
Protty describes the properties of channels and how they are categorized. The author then goes on to talk about their implementation of an Unbounded, Non-Blocking, MPSC (Multi-Producer Single-Consumer) channel.
- "a 'channel' refers to a type of queue generally used in a programming language for passing data from one concurrent task to another with extra amenities"
- Bounded or Unbounded describes whether or not the channel has a maximum capacity of stuff it can have in it which hasn't been dequeued
- "Blocking channels will pause the caller until it can interact with the channel whereas non-blocking channels will return immediately with some sort of error"