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

Function get_executors

test/test_monitor.py:43–50  ·  view source on GitHub ↗
(client)

Source from the content-addressed store, hash-verified

41
42
43def get_executors(client):
44 executors = []
45 for server in client._topology._servers.values():
46 executors.append(server._monitor._executor)
47 executors.append(server._monitor._rtt_monitor._executor)
48 executors.append(client._kill_cursors_executor)
49 executors.append(client._topology._Topology__events_executor)
50 return [e for e in executors if e is not None]
51
52
53class TestMonitor(IntegrationTest):

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected