This history matters for at least two reasons: First, the new standard for judging the constitutionality of modern gun laws under the Supreme Court’s 2022 Bruen decision is based on whether they are “consistent with this Nation’s historical tradition of firearm regulation.” Ana...
if we stop iterating, the loop adding items to the channel will block—the goroutine is leaked. Instead, we must push the onus onto the user to signal the iteration is finished. It’s far less elegant and prone to leaks if not used correctly—so much for channels and goroutines. ...