Skip to content

the Java method #CoroutineUtils.runCoroutine doesn't work #46

@cherrythefatbunny

Description

@cherrythefatbunny

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!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions