MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / wait_for_thread

Method wait_for_thread

test/test_connection_monitoring.py:104–112  ·  view source on GitHub ↗

Run the 'waitForThread' operation.

(self, op)

Source from the content-addressed store, hash-verified

102 time.sleep(op["ms"] / 1000.0)
103
104 def wait_for_thread(self, op):
105 """Run the 'waitForThread' operation."""
106 target = op["target"]
107 thread = self.targets[target]
108 thread.stop()
109 thread.join()
110 if thread.exc:
111 raise thread.exc
112 self.assertFalse(thread.ops)
113
114 def wait_for_event(self, op):
115 """Run the 'waitForEvent' operation."""

Callers

nothing calls this directly

Calls 2

stopMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected