runExclusively

suspend fun runExclusively(work: suspend () -> Unit)

While the supplied work is running, this group is considered locked and all other invocations of this method will just return, doing nothing.