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

play.golang.org/p/V0440sFT68Z

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

Follow

@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
Mastodon

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