Method
__init__
(self,
connection,
loop,
encoded_query,
**kwargs
)
Source from the content-addressed store, hash-verified
| 30 | |
| 31 | class AsyncViewRequest(ViewRequestLogic): |
| 32 | def __init__(self, |
| 33 | connection, |
| 34 | loop, |
| 35 | encoded_query, |
| 36 | **kwargs |
| 37 | ): |
| 38 | num_workers = kwargs.pop('num_workers', None) or 1 |
| 39 | super().__init__(connection, encoded_query, **kwargs) |
| 40 | self._loop = loop |
| 41 | self._tp_executor = ThreadPoolExecutor(num_workers) |
| 42 | self._executor_shutdown = False |
| 43 | |
| 44 | @property |
| 45 | def loop(self): |
Callers
nothing calls this directly
Tested by
no test coverage detected