I was actually referring to the example on the pag...
# coroutines
u
I was actually referring to the example on the page:
Copy code
mutex.lock()
try { counter++ }
finally { mutex.unlock() }
and I just thought it would be obvious to have a
Mutex.withLock
extension to simplify that