What's the different between native-mt and normal kotlin coroutine lib?

Viewed 2341

When we use coroutine, we can either have the normal kotlin coroutine or the native-mt version.

i.e.

    implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0'

or

    implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0-native-mt'

Is there any difference between them? When should we use which?

1 Answers
Related