I have a simple database in which I insert messages. I use the the change() method with the squash option to get the new messages every 10 seconds:
r.table('wall_posts').orderBy({
index: r.asc('date')
}).limit(100).changes({
squash: 10
})...
I want to get a new array of the new messages every 10 seconds. I know the output of this cursor is infinite.
Is there a way to get an array by detecting the moment where the cursor will block until more elements are available? (or any other way)
Thanks