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 characters
import asyncio | |
import socket | |
async def alice(): | |
print("started alice") | |
# alice's task starts: she attempts to connect to Bob's server | |
while True: | |
try: | |
# this is where we try to connect to bob's server | |
# if the server hasn't started, we try again |
NewerOlder