fix: mutex unlock call in async example

This commit is contained in:
Gabriele Belluardo
2026-04-18 11:55:49 +02:00
parent 8e2cbf7b5a
commit 656e1ba1e7

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