haskell-rethinkdb
haskell-rethinkdb copied to clipboard
Closing cursor with changes feed
No sure if it is really an issue , just wanted to confirm what is the right way to release Cursor obtained to receive change feeds (changes). There is no close method on Cursor (https://www.rethinkdb.com/api/javascript/close-cursor/) so for now I just spawn thread in which I invoke each function. When I no longer need changesfeed I cancel the thread. My concern is that it would cause resource leak if cursor is not released correctly at that point. Thanks.
@Wildsoft Are you looking for this close?
@codedmart No, I was not looking to close connection. I wanted to close cursor and release associated resources. Like: https://www.rethinkdb.com/api/javascript/close-cursor/