We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ce4e31d + e0c5cab commit cb47eccCopy full SHA for cb47ecc
ydb/aio/query/pool.py
@@ -29,6 +29,7 @@ def __init__(
29
size: int = 100,
30
*,
31
query_client_settings: Optional[QueryClientSettings] = None,
32
+ loop: Optional[asyncio.AbstractEventLoop] = None,
33
):
34
"""
35
:param driver: A driver instance
@@ -42,7 +43,7 @@ def __init__(
42
43
self._queue = asyncio.Queue()
44
self._current_size = 0
45
self._waiters = 0
- self._loop = asyncio.get_running_loop()
46
+ self._loop = asyncio.get_running_loop() if loop is None else loop
47
self._query_client_settings = query_client_settings
48
49
async def _create_new_session(self):
0 commit comments