···66//
77// // In a task:
88// try mutex.lock(io); // blocks until lock is acquired
99-// defer mutex.unlock();
99+// defer mutex.unlock(io);
1010// // ... critical section: safe to modify shared data ...
1111//
1212// Without the mutex, concurrent tasks could read and write the