Skip to content

Commit

Permalink
Use create_task rather than ensure_future
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgodwin committed Feb 17, 2018
1 parent b49a3e4 commit c7e0065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asgiref/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __call__(self, *args, **kwargs):
asyncio.set_event_loop(self.main_event_loop)
else:
self.main_event_loop.call_soon_threadsafe(
asyncio.ensure_future,
self.main_event_loop.create_task,
self.main_wrap(
args,
kwargs,
Expand Down

0 comments on commit c7e0065

Please sign in to comment.