1

订阅 changefeeds 时,当游标超出管理资源/连接/等的范围时,我是否需要清理或关闭游标??

  socketIo.on('connection', function(socket){
    r.table('users').changes().run(conn, function(err, cursor) {
       throw Error('some error')
       // do I need to wrap this in some sort of try catch block and call cusor.close()?
    })
  });

当连接和资源超出范围时,rethinkdb 驱动程序在清理连接和资源方面有多聪明?

4

0 回答 0