Aller au contenu principal
🔒 Mode aperçu. Les quinze premières leçons Foundations sont gratuites ; celle-ci est Pro. Démarrez un trial de 7 jours pour débloquer l'éditeur, les conseils AI et le reste du programme. Carte requise, annulez à tout moment dans Dashboard.Démarrer le trial de 7 jours →
⚡
← Cours›FastAPI ProductionModule 3 · Async + Background · Recap›

Éléments internes d'ASGI : portée, réception, envoi

quiz65 / 105
+100 XP
Tâche🌐 shown in EN
📝 **Question:** Why is the lifespan context manager preferred over @app.on_event('startup')? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
🎯 Quiz

Question

📝 **Question:** Why is the lifespan context manager preferred over @app.on_event('startup')? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.