1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
4 small wins to finish your path
Timeouts and cleanup: stopping runaway code
Every run needs a time limit and every sandbox needs closing.
Outline
This lesson is an outline of what it will teach. The full lesson, with code you can run, is being written.
What this lesson covers
- Setting timeouts
- Handling a run that never ends
- Closing sandboxes reliably
Why it matters
Forgotten sandboxes cost money and runaway code blocks users.
Slow is fine. Stopping is the only problem.