parent
a2e740c896
commit
c13941821a
|
@ -86,6 +86,7 @@ configure(allprojects.findAll { (it.name != "framework-bom") } ) { project ->
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = "1.8"
|
jvmTarget = "1.8"
|
||||||
freeCompilerArgs = ["-Xjsr305=strict"]
|
freeCompilerArgs = ["-Xjsr305=strict"]
|
||||||
|
allWarningsAsErrors = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
compileTestKotlin {
|
compileTestKotlin {
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
package org.springframework.messaging.rsocket
|
package org.springframework.messaging.rsocket
|
||||||
|
|
||||||
import io.rsocket.transport.ClientTransport
|
import io.rsocket.transport.ClientTransport
|
||||||
|
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
||||||
import kotlinx.coroutines.flow.Flow
|
import kotlinx.coroutines.flow.Flow
|
||||||
import kotlinx.coroutines.reactive.awaitFirstOrNull
|
import kotlinx.coroutines.reactive.awaitFirstOrNull
|
||||||
import kotlinx.coroutines.reactive.awaitSingle
|
import kotlinx.coroutines.reactive.awaitSingle
|
||||||
|
@ -118,6 +119,7 @@ suspend inline fun <reified T : Any> RSocketRequester.ResponseSpec.retrieveAndAw
|
||||||
* @author Sebastien Deleuze
|
* @author Sebastien Deleuze
|
||||||
* @since 5.2
|
* @since 5.2
|
||||||
*/
|
*/
|
||||||
|
@ExperimentalCoroutinesApi
|
||||||
inline fun <reified T : Any> RSocketRequester.ResponseSpec.retrieveFlow(): Flow<T> =
|
inline fun <reified T : Any> RSocketRequester.ResponseSpec.retrieveFlow(): Flow<T> =
|
||||||
retrieveFlux(object : ParameterizedTypeReference<T>() {}).asFlow()
|
retrieveFlux(object : ParameterizedTypeReference<T>() {}).asFlow()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue