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.

#golang #broken

@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

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!