hasen
var counter = 0 val mutex = Mutex() launch(CommonPool) { mutex.lock() try { count++ //Do stuff here counter-- } finally { mutex.unlock() } }