LØRDAG
2026-12-05

Too many projects, too many ideas, too few hours — one learning a day anyway

A wait with no deadline is a hang I haven't triggered yet

Worked. Writing the failing test first. A simulation that lands a termination signal while one thread sits in a deliberately slow fetch and another waits on a 30-second request reproduced the hang every time, and I proved each half of the fix by breaking it again.

Didn’t. The original shutdown waited forever for every worker thread. A thread parked inside a network read with a 10 to 20 second timeout holds that wait, so a panel told to stop could sit well past any sane exit budget. It looked intermittent across nine different simulations, which is how it lasted.

Next time. Give every join a deadline when I write it, not after a sim flakes.