Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about Coroutine dependency #16

Closed
ArcherEmiya05 opened this issue Jun 8, 2022 · 4 comments
Closed

Question about Coroutine dependency #16

ArcherEmiya05 opened this issue Jun 8, 2022 · 4 comments

Comments

@ArcherEmiya05
Copy link

Good day, I just wanted to ask why we use org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.0-native-mt instead of the regular org.jetbrains.kotlinx:kotlinx-coroutines-android:$version here. Is there any specific reason or is it mandatory when working with KMM?

Thanks

@SebastianAigner
Copy link
Member

Hi! Quoting John's reply from this StackOverflow question:

It basically provides capability to use multiple threads in Kotlin/Native code (typically as part of a Kotlin Multiplatform (KMP) project). Some more info at https://kotlinlang.org/docs/mobile/concurrency-and-coroutines.html#multithreaded-coroutines. This is also version used now by many KMP libraries (e.g. Ktor) and is generally a requirement when developing KMP apps.

@ArcherEmiya05
Copy link
Author

Hi! Quoting John's reply from this StackOverflow question:

It basically provides capability to use multiple threads in Kotlin/Native code (typically as part of a Kotlin Multiplatform (KMP) project). Some more info at https://kotlinlang.org/docs/mobile/concurrency-and-coroutines.html#multithreaded-coroutines. This is also version used now by many KMP libraries (e.g. Ktor) and is generally a requirement when developing KMP apps.

Thanks a lot

@ArcherEmiya05
Copy link
Author

ArcherEmiya05 commented Jun 22, 2022

Hi! Quoting John's reply from this StackOverflow question:

It basically provides capability to use multiple threads in Kotlin/Native code (typically as part of a Kotlin Multiplatform (KMP) project). Some more info at https://kotlinlang.org/docs/mobile/concurrency-and-coroutines.html#multithreaded-coroutines. This is also version used now by many KMP libraries (e.g. Ktor) and is generally a requirement when developing KMP apps.

I just want to follow up, since native-mt is going decommission based on this thread. Is it okay to use the regular one as the replacement?

@SebastianAigner
Copy link
Member

According to this comment, it's no longer required with the new Memory Model for Kotlin/Native, so yes, the replacement would be the regular version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants