String result = BuildersKt.runBlocking( EmptyCoroutineContext.INSTANCE, (scope, continuation) -> suspendFunctionName(continuation) ); Reference: https://www.baeldung.com/kotlin/suspend-functions-from-java
a blog to share the knowledge
a blog to share the knowledge