Calling Kotlin suspended function from Java January 09, 2024 String result = BuildersKt.runBlocking( EmptyCoroutineContext.INSTANCE, (scope, continuation) -> suspendFunctionName(continuation) ); Reference:https://www.baeldung.com/kotlin/suspend-functions-from-java Share Get link Facebook X Pinterest Email Other Apps Labels Android Share Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment