Hi guys, is there any doc around on how to execute...
# coroutines
j
Hi guys, is there any doc around on how to execute a suspend function from Java?
g
it’s nor supported officially You have to pass Continuation instance
j
I've seen that, but I dunno how to do that 😅
well, oh
it's enough just implementing the interface
g
Yes, you can pass own Continuation instance
j
oh, nice!, thanks
g
Oh. of it’s fine for you, than of course, you need special async API for java I thought that question was about calling some existing API from pure java project
j
nope, it's the same project, some java, some kotlin... in our way to go fully kotlin tho
g
Yeah, than you just need some future-like abstraction for Java. In our case we use RxJava adapter for coroutines to use from Java
j
oh, thanks, that's actually a great idea