Never wait forever — add a timeout with race.
Winner := race:
block:
Sleep(Inf)
true
block:
Sleep(5.0)
false
Takeaway — race a wait against a Sleep = safe timeout.
Never wait forever — add a timeout with race.
Winner := race:
block:
Sleep(Inf)
true
block:
Sleep(5.0)
false
Takeaway — race a wait against a Sleep = safe timeout.
timeout_a_waitGenerate a personalized, step-by-step lesson plan built around this object — grounded in this exact reference and our compile-verified knowledge base.
Build a lesson →Scout · your island guide
The Isle of Verse