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

Method create_resource

test/asynchronous/test_load_balancer.py:78–81  ·  view source on GitHub ↗
(coll)

Source from the content-addressed store, hash-verified

76 @async_client_context.require_failCommand_fail_point
77 async def test_cursor_gc(self):
78 async def create_resource(coll):
79 cursor = coll.find({}, batch_size=3)
80 await anext(cursor)
81 return cursor
82
83 await self._test_no_gc_deadlock(create_resource)
84

Callers

nothing calls this directly

Calls 3

anextFunction · 0.90
findMethod · 0.45
aggregateMethod · 0.45

Tested by

no test coverage detected