-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: don't use coroutines in common sources, make them optional for…
… JVM targets - fix KT-69529 by avoiding coroutines in WASM target (JS included by convenience) - `stately-concurrent-collections` now used for native targets Signed-off-by: Art Shendrik <[email protected]>
- Loading branch information
Showing
20 changed files
with
77 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
org.jetbrains.kotlin:kotlin-stdlib:2.0.20-Beta1 | ||
org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.9.0-RC | ||
org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.9.0-RC | ||
org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0-RC | ||
org.jetbrains:annotations:23.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
org.jetbrains.kotlin:kotlin-stdlib:2.0.20-Beta1 | ||
org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.9.0-RC | ||
org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.9.0-RC | ||
org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0-RC | ||
org.jetbrains:annotations:23.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
org.jetbrains.kotlin:kotlin-stdlib:2.0.20-Beta1 | ||
org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.9.0-RC | ||
org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.9.0-RC | ||
org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0-RC | ||
org.jetbrains:annotations:24.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
org.jetbrains.kotlin:kotlin-stdlib:2.0.20-Beta1 | ||
org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.9.0-RC | ||
org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.9.0-RC | ||
org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0-RC | ||
org.jetbrains:annotations:23.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
org.jetbrains.kotlin:kotlin-stdlib:2.0.20-Beta1 | ||
org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.9.0-RC | ||
org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.9.0-RC | ||
org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0-RC | ||
org.jetbrains:annotations:24.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
fluxo-io-rad/src/commonJsMain/kotlin/fluxo/io/util/ConcurrentHashMap.commonJs.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@file:Suppress("FunctionName") | ||
|
||
package fluxo.io.util | ||
|
||
// WASM and JS are single-threaded, we can use a regular HashMap. | ||
internal actual fun <K, V> ConcurrentHashMap(): MutableMap<K, V> = HashMap() |
6 changes: 6 additions & 0 deletions
6
fluxo-io-rad/src/commonJvmMain/kotlin/fluxo/io/util/ConcurrentHashMap.commonJvm.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@file:Suppress("FunctionName") | ||
|
||
package fluxo.io.util | ||
|
||
internal actual fun <K, V> ConcurrentHashMap(): MutableMap<K, V> = | ||
java.util.concurrent.ConcurrentHashMap() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
fluxo-io-rad/src/commonMain/kotlin/fluxo/io/util/ConcurrentHashMap.common.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@file:Suppress("FunctionName") | ||
|
||
package fluxo.io.util | ||
|
||
internal expect fun <K, V> ConcurrentHashMap(): MutableMap<K, V> |
6 changes: 6 additions & 0 deletions
6
fluxo-io-rad/src/nativeMain/kotlin/fluxo/io/util/ConcurrentHashMap.commonNative.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@file:Suppress("FunctionName") | ||
|
||
package fluxo.io.util | ||
|
||
internal actual fun <K, V> ConcurrentHashMap(): MutableMap<K, V> = | ||
co.touchlab.stately.collections.ConcurrentMutableMap() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters