We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0fa590d + 774a2b9 commit ca9e6f0Copy full SHA for ca9e6f0
graphql/execution/executors/asyncio.py
@@ -10,7 +10,10 @@ def __init__(self):
10
self.futures = []
11
12
def wait_until_finished(self):
13
- self.loop.run_until_complete(wait(self.futures))
+ # if there are futures to wait for
14
+ if self.futures:
15
+ # wait for the futures to finish
16
+ self.loop.run_until_complete(wait(self.futures))
17
18
def execute(self, fn, *args, **kwargs):
19
result = fn(*args, **kwargs)
0 commit comments