Method
__init__
(self,
connection,
loop,
query_params,
row_factory=lambda x: x,
**kwargs
)
Source from the content-addressed store, hash-verified
| 33 | |
| 34 | class AsyncN1QLRequest(QueryRequestLogic): |
| 35 | def __init__(self, |
| 36 | connection, |
| 37 | loop, |
| 38 | query_params, |
| 39 | row_factory=lambda x: x, |
| 40 | **kwargs |
| 41 | ): |
| 42 | num_workers = kwargs.pop('num_workers', None) or 1 |
| 43 | super().__init__(connection, query_params, row_factory=row_factory, **kwargs) |
| 44 | self._loop = loop |
| 45 | self._tp_executor = ThreadPoolExecutor(num_workers) |
| 46 | self._executor_shutdown = False |
| 47 | |
| 48 | @property |
| 49 | def loop(self): |
Callers
nothing calls this directly
Tested by
no test coverage detected