Naar hoofdinhoud
🔒 Voorbeeldmodus. De eerste vijftien Foundations-lessen zijn gratis; deze is Pro. Start een 7-daagse trial om de editor, AI-hints en de rest van het curriculum te ontgrendelen. Kaart vereist, op elk moment opzegbaar in Dashboard.Start 7-daagse trial →
← CursussenFastAPI ProductionModule 4 · Async, Achtergrondtaken, WebSocketsPatroon van stroomonderbrekerwrite55 / 105
+150 XP
Opdracht🌐 shown in EN
📝 **Question:** Implement `CircuitBreaker`. fail_max=2, recovery=10. 2 fails → opens. Call while open → RuntimeError. After 10s → half_open; success → closed. Print results for: 2 failed calls, 1 attempted while open, advance time, 1 successful call. 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
✏️ Schrijf hier je code
🐍
Python laden...
Eenmalige download (~1 MB). Daarna direct beschikbaar.
📊 Resultaat
Klik op Uitvoeren om het resultaat te zien...