Created
April 13, 2019 06:59
-
-
Save jordic/0f194c4d39eae28570fe3fe75e5326e1 to your computer and use it in GitHub Desktop.
Revisions
-
Jordi Collell created this gist
Apr 13, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ _, pending = await asyncio.wait( [handler_task, receiver_task], return_when=asyncio.FIRST_COMPLETED, ) await _cancel_tasks(pending)