MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / _cancel_current_command

Method _cancel_current_command

asyncpg/connection.py:1711–1713  ·  view source on GitHub ↗
(self, waiter, cancel_waiter=None)

Source from the content-addressed store, hash-verified

1709 waiter.set_result(None)
1710
1711 def _cancel_current_command(self, waiter, cancel_waiter=None):
1712 self._cancellations.add(self._loop.create_task(
1713 self._cancel(waiter, cancel_waiter)))
1714
1715 def _process_log_message(self, fields, last_query):
1716 if not self._log_listeners:

Callers 1

test_cancellation_04Method · 0.80

Calls 1

_cancelMethod · 0.95

Tested by 1

test_cancellation_04Method · 0.64