- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for choice (0.13 sec)
-
docs/pt/docs/advanced/events.md
Mas `open()` não usa `async` e `await`. Então, nós declaramos uma função de manipulação de evento com o padrão `def` ao invés de `async def`. ### `startup` e `shutdown` juntos Há uma grande chance que a lógica para sua *inicialização* e *encerramento* esteja conectada, você pode querer iniciar alguma coisa e então finalizá-la, adquirir um recurso e então liberá-lo, etc.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.6K bytes - Viewed (0) -
docs/en/docs/advanced/events.md
But `open()` doesn't use `async` and `await`. So, we declare the event handler function with standard `def` instead of `async def`. ### `startup` and `shutdown` together There's a high chance that the logic for your *startup* and *shutdown* is connected, you might want to start something and then finish it, acquire a resource and then release it, etc.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.8K bytes - Viewed (0)