You really shouldn't, to be honest. If you want Java interop you need to design your APi in a Java-compatible way,
suspend
functions aren't. Provide a
CompletableFuture
based version for Java.
✔️ 3
c
CLOVIS
06/19/2021, 7:55 AM
Note that you won't be able to call suspend functions easily from Java, even inside a suspend function: you need to pass the correct parameter to the Continuation, and handle the callbacks yourself. It's fairly complicated