"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "spring-messaging/src/main/kotlin/org/springframework/messaging/rsocket/RSocketRequesterExtensions.kt" between
spring-framework-5.3.7.tar.gz and spring-framework-5.3.8.tar.gz

About: Spring Framework is an application framework for the Java platform and .NET Framework. Community edition.

RSocketRequesterExtensions.kt  (spring-framework-5.3.7):RSocketRequesterExtensions.kt  (spring-framework-5.3.8)
/* /*
* Copyright 2002-2019 the original author or authors. * Copyright 2002-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* https://www.apache.org/licenses/LICENSE-2.0 * https://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
skipping to change at line 104 skipping to change at line 104
*/ */
inline fun <reified T : Any> RSocketRequester.RequestSpec.dataWithType(flow: Flo w<T>): RSocketRequester.RetrieveSpec = inline fun <reified T : Any> RSocketRequester.RequestSpec.dataWithType(flow: Flo w<T>): RSocketRequester.RetrieveSpec =
data(flow, object : ParameterizedTypeReference<T>() {}) data(flow, object : ParameterizedTypeReference<T>() {})
/** /**
* Coroutines variant of [RSocketRequester.RetrieveSpec.send]. * Coroutines variant of [RSocketRequester.RetrieveSpec.send].
* *
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @since 5.2 * @since 5.2
*/ */
@Suppress("DEPRECATION")
suspend fun RSocketRequester.RetrieveSpec.sendAndAwait() { suspend fun RSocketRequester.RetrieveSpec.sendAndAwait() {
send().awaitSingleOrNull() send().awaitSingleOrNull()
} }
/** /**
* Coroutines variant of [RSocketRequester.RetrieveSpec.retrieveMono]. * Coroutines variant of [RSocketRequester.RetrieveSpec.retrieveMono].
* *
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @since 5.2 * @since 5.2
*/ */
suspend inline fun <reified T : Any> RSocketRequester.RetrieveSpec.retrieveAndAw ait(): T = suspend inline fun <reified T : Any> RSocketRequester.RetrieveSpec.retrieveAndAw ait(): T =
retrieveMono(object : ParameterizedTypeReference<T>() {}).awaitSi ngle() retrieveMono(object : ParameterizedTypeReference<T>() {}).awaitSi ngle()
/** /**
* Nullable coroutines variant of [RSocketRequester.RetrieveSpec.retrieveMono]. * Nullable coroutines variant of [RSocketRequester.RetrieveSpec.retrieveMono].
* *
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @since 5.2.1 * @since 5.2.1
*/ */
@Suppress("DEPRECATION")
suspend inline fun <reified T : Any> RSocketRequester.RetrieveSpec.retrieveAndAw aitOrNull(): T? = suspend inline fun <reified T : Any> RSocketRequester.RetrieveSpec.retrieveAndAw aitOrNull(): T? =
retrieveMono(object : ParameterizedTypeReference<T>() {}).awaitSi ngleOrNull() retrieveMono(object : ParameterizedTypeReference<T>() {}).awaitSi ngleOrNull()
/** /**
* Coroutines variant of [RSocketRequester.RetrieveSpec.retrieveFlux]. * Coroutines variant of [RSocketRequester.RetrieveSpec.retrieveFlux].
* *
* @author Sebastien Deleuze * @author Sebastien Deleuze
* @since 5.2 * @since 5.2
*/ */
inline fun <reified T : Any> RSocketRequester.RetrieveSpec.retrieveFlow(): Flow< T> = inline fun <reified T : Any> RSocketRequester.RetrieveSpec.retrieveFlow(): Flow< T> =
 End of changes. 3 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)