In Kotlin, it’s runBlocking {<asynchronous-code>}.
This is a language specific problem, not a language pattern one.