-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
this way you can guarantee a cursor gets closed w/o waiting for it to get GC'ed, etc.
with db.test.find() as cursor:
cursor.next()