.kotlinx.kotlinx-coroutines-reactive.1.10.1.source-code.Migration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlinx-coroutines-reactive Show documentation
Show all versions of kotlinx-coroutines-reactive Show documentation
Coroutines support libraries for Kotlin
@file:JvmMultifileClass
@file:JvmName("FlowKt")
package kotlinx.coroutines.reactive
import kotlinx.coroutines.*
import kotlinx.coroutines.flow.*
import org.reactivestreams.*
// Binary compatibility with Spring 5.2 RC
/** @suppress */
@Deprecated(
message = "Replaced in favor of ReactiveFlow extension, please import kotlinx.coroutines.reactive.* instead of kotlinx.coroutines.reactive.FlowKt",
level = DeprecationLevel.HIDDEN
)
@JvmName("asFlow")
public fun Publisher.asFlowDeprecated(): Flow = asFlow()
// Binary compatibility with Spring 5.2 RC
/** @suppress */
@Deprecated(
message = "Replaced in favor of ReactiveFlow extension, please import kotlinx.coroutines.reactive.* instead of kotlinx.coroutines.reactive.FlowKt",
level = DeprecationLevel.HIDDEN
)
@JvmName("asPublisher")
public fun Flow.asPublisherDeprecated(): Publisher = asPublisher()
/** @suppress */
@Deprecated(
message = "batchSize parameter is deprecated, use .buffer() instead to control the backpressure",
level = DeprecationLevel.HIDDEN,
replaceWith = ReplaceWith("asFlow().buffer(batchSize)", imports = ["kotlinx.coroutines.flow.*"])
)
public fun Publisher.asFlow(batchSize: Int): Flow = asFlow().buffer(batchSize)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy