Method
__init__
(
self,
connection,
query,
state,
args,
record_class,
prefetch,
timeout
)
Source from the content-addressed store, hash-verified
| 196 | __slots__ = ('_buffer', '_prefetch', '_timeout') |
| 197 | |
| 198 | def __init__( |
| 199 | self, |
| 200 | connection, |
| 201 | query, |
| 202 | state, |
| 203 | args, |
| 204 | record_class, |
| 205 | prefetch, |
| 206 | timeout |
| 207 | ): |
| 208 | super().__init__(connection, query, state, args, record_class) |
| 209 | |
| 210 | if prefetch <= 0: |
| 211 | raise exceptions.InterfaceError( |
| 212 | 'prefetch argument must be greater than zero') |
| 213 | |
| 214 | self._buffer = collections.deque() |
| 215 | self._prefetch = prefetch |
| 216 | self._timeout = timeout |
| 217 | |
| 218 | @connresource.guarded |
| 219 | def __aiter__(self): |
Callers
nothing calls this directly
Tested by
no test coverage detected