run

suspend fun <T> run(block: suspend () -> T): T(source)

Suspends until the lock is available, then executes block exclusively. Always runs block, even if other coroutines are queued behind it.

Return

The return value of block.