A common mistake is replacing sync.Cond.Wait with a busy loop or a shared channel. Wait releases the associated locker, blocks until notification, then reacquires the locker before returning; the condition must still be checked in a loop. section 9.12
Waiting for donation goals
Each listener locks the condition, waits while donation.balance is below its goal, then prints after Wait returns. The updater increments balance while locked and calls Broadcast so all eligible listeners can recheck their predicates.



