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

Method cancel

pymongo/_asyncio_task.py:33–35  ·  view source on GitHub ↗
(self, msg: Optional[str] = None)

Source from the content-addressed store, hash-verified

31 asyncio._register_task(self)
32
33 def cancel(self, msg: Optional[str] = None) -> bool:
34 self._cancel_requests += 1
35 return super().cancel(msg=msg)
36
37 def uncancel(self) -> int:
38 if self._cancel_requests > 0:

Calls

no outgoing calls