asyncio
This commit is contained in:
@@ -10,9 +10,7 @@ import asyncio
|
|||||||
def main():
|
def main():
|
||||||
args = parseCommandLine()
|
args = parseCommandLine()
|
||||||
game = createGame(args)
|
game = createGame(args)
|
||||||
event_loop = asyncio.get_event_loop()
|
asyncio.run(game.run())
|
||||||
event_loop.run_until_complete(game.run())
|
|
||||||
event_loop.close()
|
|
||||||
|
|
||||||
|
|
||||||
def parseCommandLine():
|
def parseCommandLine():
|
||||||
|
|||||||
Reference in New Issue
Block a user