Oddbean new post about | logout
 nostr:npub1zuzyg5k8qdtu89nnzr5qmflzwleu7rlhm0t50gduu83qr04nrnus0hm2vc Channels seem too complicated to me for this use case. I would make a structure to hold the state for requests, and modify it within a goroutine. Then you can just kick them off (using the waitgroup for sync), and when they're done, the results & error states are easily accessible.

https://cdn.pawb.social/mastodon-pawb/media_attachments/files/111/147/119/143/382/671/original/14373dde8a46c6fd.jpeg