my ziglings
0

Configure Feed

Select the types of activity you want to include in your feed.

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

Chris Boesch (Apr 18, 2026, 9:50 PM +0200) f35c9419 8e2cbf7b

+1 -1
+1 -1
exercises/091_async7.zig
··· 6 6 // 7 7 // // In a task: 8 8 // try mutex.lock(io); // blocks until lock is acquired 9 - // defer mutex.unlock(); 9 + // defer mutex.unlock(io); 10 10 // // ... critical section: safe to modify shared data ... 11 11 // 12 12 // Without the mutex, concurrent tasks could read and write the