Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
binary132
· 2y ago · 0 comments
That is unnecessarily complicated, and you don’t need a sleep or atomics.... Just make an array of result channels, and loop over it awaiting each result. Each result has a producer either working, or waiting for the channel reader to consume it.
Comments
No comments yet.
Better HN