mirror of
https://github.com/graphql-python/graphene.git
synced 2025-07-18 12:02:19 +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,
|
loop=None,
|
||||||
):
|
):
|
||||||
|
|
||||||
# Create empty _loop which will be populated with asyncio's event loop as soon as it's needed.
|
self._loop = loop
|
||||||
self._loop = None
|
|
||||||
|
|
||||||
if batch_load_fn is not None:
|
if batch_load_fn is not None:
|
||||||
self.batch_load_fn = batch_load_fn
|
self.batch_load_fn = batch_load_fn
|
||||||
|
|
Loading…
Reference in New Issue
Block a user