Merge pull request 'fix: mutex unlock call in async example' (#407) from gabelluardo/ziglings:fix-async91 into main

Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/407
This commit is contained in:
Chris Boesch
2026-04-18 21:50:49 +02:00

View File

@@ -6,7 +6,7 @@
//
// // In a task:
// try mutex.lock(io); // blocks until lock is acquired
// defer mutex.unlock();
// defer mutex.unlock(io);
// // ... critical section: safe to modify shared data ...
//
// Without the mutex, concurrent tasks could read and write the