async
This commit is contained in:
4
Game.py
4
Game.py
@@ -23,11 +23,11 @@ class Game:
|
|||||||
self.is_running.release()
|
self.is_running.release()
|
||||||
|
|
||||||
async def run(self):
|
async def run(self):
|
||||||
await logging.info('Starting game')
|
logging.info('Starting game')
|
||||||
|
|
||||||
await self.is_running.acquire()
|
await self.is_running.acquire()
|
||||||
|
|
||||||
await self.input_handler.handleInputs()
|
self.input_handler.handleInputs()
|
||||||
|
|
||||||
await self.is_running.wait()
|
await self.is_running.wait()
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user