In ipfs/kubo#2760 @whyrusleeping said in a line comment:
Yeah, using a channel as an iterator sucks. If one of you wants to work on improving the perf of query that would be great.
We could change the interface to not use a channel, and have it instead just return the next value directly. Then on top of that we could provide a method for turning the direct query result into a channel buffered one for usecases that need it
In ipfs/kubo#2760 @whyrusleeping said in a line comment: