Update publishing

This commit is contained in:
Alexander Nozik 2023-03-22 10:54:24 +03:00
parent c442eb7e94
commit 56bba749c0
3 changed files with 5 additions and 4 deletions

View File

@ -32,7 +32,7 @@ jobs:
with:
arguments: |
publishAllPublicationsToSpaceRepository
-Ppublishing.enabled=true
-Ppublishing.targets=all
-Ppublishing.space.user=${{ secrets.SPACE_APP_ID }}
-Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}
- name: Publish Mac Artifacts
@ -44,6 +44,6 @@ jobs:
publishIosX64PublicationToSpaceRepository
publishIosArm64PublicationToSpaceRepository
publishIosSimulatorArm64PublicationToSpaceRepository
-Ppublishing.enabled=true
-Ppublishing.targets=all
-Ppublishing.space.user=${{ secrets.SPACE_APP_ID }}
-Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}

View File

@ -9,7 +9,7 @@ kotlin.native.ignoreDisabledTargets=true
org.gradle.configureondemand=true
org.gradle.jvmargs=-Xmx4096m
toolsVersion=0.14.4-kotlin-1.8.20-RC
toolsVersion=0.14.5-kotlin-1.8.20-RC
org.gradle.parallel=true

View File

@ -8,6 +8,7 @@
package space.kscience.kmath.coroutines
import kotlinx.coroutines.*
import kotlinx.coroutines.channels.ReceiveChannel
import kotlinx.coroutines.channels.produce
import kotlinx.coroutines.flow.*
@ -57,7 +58,7 @@ public suspend fun <T> AsyncFlow<T>.collect(concurrency: Int, collector: FlowCol
coroutineScope {
//Starting up to N deferred coroutines ahead of time
val channel = produce(capacity = concurrency - 1) {
val channel: ReceiveChannel<LazyDeferred<T>> = produce(capacity = concurrency - 1) {
deferredFlow.collect { value ->
value.start(this@coroutineScope)
send(value)