✅ System.Threading.Channels - Consumer is blocking the main thread where the producer is
Hello,
The producer writes to the channel with
The outcome should be a non-blocking read, so the producer would complete in the meantime.
The following is the consumer:
The producer writes to the channel with
WriteAsync(), but the consumer blocks the termination of the producer.The outcome should be a non-blocking read, so the producer would complete in the meantime.
The following is the consumer: