Wait for user input via GraphQL mutation or return default value if input takes too long
I’m creating a small poker game with Python. I’m struggling with waiting for the player input (e.g., RAISE) in the main game loop, without blocking the responses to the user. If the user takes too long to take action, the game should automatically choose an action for the player (i.e., FOLD).