0

lets say there is an android project with module a, b and c all written in java. then I add another module, module d in the project. can I still use coroutine internally in module d?

I know I cannot use it in java module, but does coroutine still work in this project even though specific module that use coroutine was pure kotlin

1 Answer 1

0

You can definitely use coroutines in your kotlin class without any problem. The syntax remains the same as any normal kotlin project.

On top of that, you can even use coroutines in your Java Class by a workaround using this.

Implementing Coroutines in Java

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.