Skip to content

Commit 32ab879

Browse files
committed
plug loop parameter into self._loop, so that we still have the ability to pass in a custom event loop, if needed.
1 parent cad00f0 commit 32ab879

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

graphene/utils/dataloader.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ def __init__(
3434
loop=None,
3535
):
3636

37-
# Create empty _loop which will be populated with asyncio's event loop as soon as it's needed.
38-
self._loop = None
37+
self._loop = loop
3938

4039
if batch_load_fn is not None:
4140
self.batch_load_fn = batch_load_fn

0 commit comments

Comments
 (0)