We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dadb918 + 3acd71d commit a9744aeCopy full SHA for a9744ae
graphql/execution/executors/asyncio.py
@@ -38,9 +38,11 @@ def __init__(self, loop=None):
38
39
def wait_until_finished(self):
40
# if there are futures to wait for
41
- if self.futures:
+ while self.futures:
42
# wait for the futures to finish
43
- self.loop.run_until_complete(wait(self.futures))
+ futures = self.futures
44
+ self.futures = []
45
+ self.loop.run_until_complete(wait(futures))
46
47
def execute(self, fn, *args, **kwargs):
48
result = fn(*args, **kwargs)
0 commit comments