mirror of
https://github.com/graphql-python/graphene.git
synced 2025-07-18 03:52:24 +03:00
plug loop
parameter into self._loop
, so that we still have the ability to pass in a custom event loop, if needed.
This commit is contained in:
parent
cad00f0b98
commit
32ab8791f7
|
@ -34,8 +34,7 @@ class DataLoader(object):
|
|||
loop=None,
|
||||
):
|
||||
|
||||
# Create empty _loop which will be populated with asyncio's event loop as soon as it's needed.
|
||||
self._loop = None
|
||||
self._loop = loop
|
||||
|
||||
if batch_load_fn is not None:
|
||||
self.batch_load_fn = batch_load_fn
|
||||
|
|
Loading…
Reference in New Issue
Block a user