Question about mpsc::channel

What is the design reason (I assume there is one) that there is no way to inspect a channel and check it is valid?

I have not found a way and it seems there is none.

The result is inherently unreliable, because the channel can become invalid immediately after the validity check returns.

Lack of such method nudges towards rethinking the design towards something else, like try_recv().

3 Likes