https://kotlinlang.org logo
#coroutines
Title
# coroutines
j

jenji

08/03/2020, 5:48 PM
Didn’t think before posting in #general, but this seems more appropriate to ask here.
t

TwoClocks

08/08/2020, 8:51 PM
The only thing I can think of is that you'd have to wrap all the java code w/ kotln code. meaning you'd have to launch the java code from kotlin (in a coroutine), and the javacode would have to call back into kotlin to suspend.
j

jenji

08/10/2020, 5:08 PM
as of right now, I went with exposing an async/launch method to the java code that runs under couroutines, and a coroutine scope for Kotlin code. I’m basically tying myself to kotlin for the internal implementation, but… well, I own that and want to write it in Kotlin anyway 😄 seems reasonable enough for now.
2 Views