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

Method target

test/asynchronous/test_session.py:267–273  ·  view source on GitHub ↗
(op, *args)

Source from the content-addressed store, hash-verified

265 listener.reset()
266
267 async def target(op, *args):
268 if iscoroutinefunction(op):
269 res = await op(*args)
270 else:
271 res = op(*args)
272 if isinstance(res, (AsyncCursor, AsyncCommandCursor)):
273 await res.to_list()
274
275 for op, args in ops:
276 tasks.append(

Callers 1

runMethod · 0.45

Calls 1

to_listMethod · 0.45

Tested by

no test coverage detected