MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / explicit_close

Method explicit_close

test/test_session.py:668–671  ·  view source on GitHub ↗
(session=None)

Source from the content-addressed store, hash-verified

666 coll.insert_many([{} for _ in range(10)])
667
668 def explicit_close(session=None):
669 cursor = coll.find(batch_size=2, session=session)
670 next(cursor)
671 cursor.close()
672
673 self._test_ops(client, (explicit_close, [], {}))
674

Callers

nothing calls this directly

Calls 3

nextFunction · 0.90
findMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected