You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(follow the link to get the dependency declaration snippet). **Kotlin/Native requires Gradle version 6.0 or later**
203
-
to resolve that dependency properly into the corresponding platform-specific artifacts.
200
+
Kotlin/Native version of `kotlinx.coroutines` is published as
201
+
[`kotlinx-coroutines-core-$platform`](https://mvnrepository.com/search?q=kotlinx-coroutines-core-) where `$platform` is
202
+
the target Kotlin/Native platform. [List of currently supported targets](https://github.com/Kotlin/kotlinx.coroutines/blob/master/gradle/compile-native-multiplatform.gradle#L16).
204
203
205
-
Kotlin/Native does not generally provide binary compatibility between versions.
206
-
You should use the same version of Kotlin/Native compiler as was used to build `kotlinx.coroutines`.
207
204
208
-
Kotlin/Native does not support free sharing of mutable objects between threads as on JVM, so several
209
-
limitations apply to using coroutines on Kotlin/Native.
210
-
See [Sharing and background threads on Kotlin/Native](kotlin-native-sharing.md) for details.
205
+
Only single-threaded code (JS-style) on Kotlin/Native is supported in stable versions.
206
+
Additionally, a special `-native-mt` version is released on a regular basis, for the state of multi-threaded coroutines support
207
+
please follow the [corresponding issue](https://github.com/Kotlin/kotlinx.coroutines/issues/462) for the additional details.
211
208
212
-
Some functions like [newSingleThreadContext] and [runBlocking] are available only for Kotlin/JVM and Kotlin/Native
213
-
and are not available on Kotlin/JS. In order to access them from the code that is shared between JVM and Native
214
-
you need to enable granular metadata (aka HMPP) in your `gradle.properties` file:
215
-
216
-
```properties
217
-
kotlin.mpp.enableGranularSourceSetsMetadata=true
218
-
```
209
+
Since Kotlin/Native does not generally provide binary compatibility between versions,
210
+
you should use the same version of the Kotlin/Native compiler as was used to build `kotlinx.coroutines`.
219
211
220
212
## Building and Contributing
221
213
@@ -241,12 +233,11 @@ See [Contributing Guidelines](CONTRIBUTING.md).
0 commit comments