- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for promise (0.15 sec)
-
docs/pt/docs/advanced/events.md
!!! tip "Dica" O `shutdown` aconteceria quando você estivesse **encerrando** a aplicação. Talvez você precise inicializar uma nova versão, ou apenas cansou de executá-la. 🤷 ### Função _lifespan_ A primeira coisa a notar, é que estamos definindo uma função assíncrona com `yield`. Isso é muito semelhante à Dependências com `yield`.
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
``` ## Alternative Events (deprecated) !!! warning The recommended way to handle the *startup* and *shutdown* is using the `lifespan` parameter of the `FastAPI` app as described above. If you provide a `lifespan` parameter, `startup` and `shutdown` event handlers will no longer be called. It's all `lifespan` or all events, not both. You can probably skip this part.
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)