It seems as though the `Queue` type no longer exis...
# arrow
s
It seems as though the
Queue
type no longer exists in Arrow (presumably when
IO
went away?). I was looking to build a simple rate limiter using the bounded queue and
Schedule
if anyone has any suggestions for alternatives.
s
Hey @Scott Christopher, KotlinX offers Channel which has the same functionality as Queue. There is also a metered function for KotlinX Flow in Arrow Fx. If you have any questions, I’d be happy to help :)
Use Channel(size) to replace a bounded queue.
s
Thanks @simon.vergauwen I’ll check it out, though looks like it should do nicely.
👍 1