await

suspend fun await()

When await is called the function will suspend until the required number of coroutines have called await. Once the capacity of the barrier has been reached, the coroutine will be released and continue execution.