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

Method run

test/asynchronous/utils_spec_runner.py:48–59  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46 self.cond.notify()
47
48 async def run(self):
49 while not self.stopped or self.ops:
50 if not self.ops:
51 async with self.cond:
52 await _async_cond_wait(self.cond, 10)
53 if self.ops:
54 try:
55 work = self.ops.pop(0)
56 await work()
57 except Exception as exc:
58 self.exc = exc
59 await self.stop()
60
61
62class AsyncSpecTestCreator:

Callers 1

create_testsMethod · 0.45

Calls 3

stopMethod · 0.95
_async_cond_waitFunction · 0.90
popMethod · 0.45

Tested by

no test coverage detected