I see the project has a java method named CoroutineUtils.runCoroutine,so in my opinion,i can run a coroutine in java.But i tried and it failed without invoking the continuation callback.Here is my code:
CoroutineUtils
.runCoroutine(context,
(scope, continuation) -> personMapperB.getName(name),
new Continuation<String>() {
@NotNull
@Override
public CoroutineContext getContext() {
return context;
}
@Override
public void resumeWith(@NotNull Object o) {
System.err.println(123445555);
}
});
So is it possible to invoke in java,if possible how can i do that?Thank you!!!
I see the project has a java method named
CoroutineUtils.runCoroutine
,so in my opinion,i can run a coroutine in java.But i tried and it failed without invoking the continuation callback.Here is my code: