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 4c416d4 + ca9e6f0 commit 675f01aCopy full SHA for 675f01a
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