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

Function _poll_cancellation

pymongo/network_layer.py:242–247  ·  view source on GitHub ↗
(conn: AsyncConnection)

Source from the content-addressed store, hash-verified

240
241
242async def _poll_cancellation(conn: AsyncConnection) -> None:
243 while True:
244 if conn.cancel_context.cancelled:
245 return
246
247 await asyncio.sleep(_POLL_TIMEOUT)
248
249
250async def async_receive_data_socket(

Callers 1

async_receive_messageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected