MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / __await__

Method __await__

asyncpg/cursor.py:64–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

62
63 @connresource.guarded
64 def __await__(self):
65 if self._prefetch is not None:
66 raise exceptions.InterfaceError(
67 'prefetch argument can only be specified for iterable cursor')
68 cursor = Cursor(
69 self._connection,
70 self._query,
71 self._state,
72 self._args,
73 self._record_class,
74 )
75 return cursor._init(self._timeout).__await__()
76
77 def __del__(self):
78 if self._state is not None:

Callers

nothing calls this directly

Calls 2

_initMethod · 0.95
CursorClass · 0.85

Tested by

no test coverage detected