cursor.
close
()¶mongo
Shell Method
This page documents the 本页记录了mongo
shell method, and does not refer to the MongoDB Node.js driver (or any other driver) method. mongo
shell方法,未提及MongoDB Node.js驱动程序(或任何其他驱动程序)方法。For corresponding MongoDB driver API, refer to your specific MongoDB driver documentation instead.有关相应的MongoDB驱动程序API,请参阅特定的MongoDB驱动程序文档。
Instructs the server to close a cursor and free associated server resources. 指示服务器关闭游标并释放关联的服务器资源。The server will automatically close cursors that have no remaining results, as well as cursors that have been idle for a period of time and lack the 服务器将自动关闭没有剩余结果的游标,以及闲置一段时间且缺少cursor.noCursorTimeout()
option.cursor.noCursorTimeout()
选项的游标。
The close()
method has the following prototype form:close()
方法的原型形式如下: