The absolute worst choice for behavior here is to deadlock. Sending to a nil channel should be a panic if anything does.

There's no recovery here, you just lose that thread forever.

@alatiera bug. Especially since you have no thread handles to ever shut it down.

Super memory leak too all the references remain valid.

Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!