Skip to content

Commit 703e407

Browse files
committed
Use python 3.6 friendly asyncio method
1 parent 3adfaa9 commit 703e407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql_ws/base_async.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async def resolve(
5555
items = None
5656
if items is not None:
5757
children = [
58-
asyncio.create_task(resolve(child, _container=data, _key=key))
58+
asyncio.ensure_future(resolve(child, _container=data, _key=key))
5959
for key, child in items
6060
]
6161
if children:

0 commit comments

Comments
 (0)