Replace Reactive awaitSingle() usages by the Mono variant

Closes gh-31127
This commit is contained in:
Sébastien Deleuze 2023-08-29 09:49:44 +02:00
parent af03fa7657
commit bcf11e8919
10 changed files with 10 additions and 10 deletions

View File

@ -19,7 +19,7 @@ package org.springframework.messaging.rsocket
import io.rsocket.transport.ClientTransport import io.rsocket.transport.ClientTransport
import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.reactive.asFlow import kotlinx.coroutines.reactive.asFlow
import kotlinx.coroutines.reactive.awaitSingle import kotlinx.coroutines.reactor.awaitSingle
import kotlinx.coroutines.reactor.awaitSingleOrNull import kotlinx.coroutines.reactor.awaitSingleOrNull
import org.reactivestreams.Publisher import org.reactivestreams.Publisher
import org.springframework.core.ParameterizedTypeReference import org.springframework.core.ParameterizedTypeReference

View File

@ -16,7 +16,7 @@
package org.springframework.r2dbc.core package org.springframework.r2dbc.core
import kotlinx.coroutines.reactive.awaitSingle import kotlinx.coroutines.reactor.awaitSingle
/** /**
* Coroutines variant of [UpdatedRowsFetchSpec.rowsUpdated]. * Coroutines variant of [UpdatedRowsFetchSpec.rowsUpdated].

View File

@ -17,7 +17,7 @@
package org.springframework.web.server package org.springframework.web.server
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.reactive.awaitSingle import kotlinx.coroutines.reactor.awaitSingle
import kotlinx.coroutines.reactor.mono import kotlinx.coroutines.reactor.mono
import org.springframework.http.codec.multipart.Part import org.springframework.http.codec.multipart.Part
import org.springframework.util.MultiValueMap import org.springframework.util.MultiValueMap

View File

@ -18,7 +18,7 @@ package org.springframework.web.reactive.function.client
import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.reactor.awaitSingleOrNull import kotlinx.coroutines.reactor.awaitSingleOrNull
import kotlinx.coroutines.reactive.awaitSingle import kotlinx.coroutines.reactor.awaitSingle
import kotlinx.coroutines.reactive.asFlow import kotlinx.coroutines.reactive.asFlow
import org.springframework.core.ParameterizedTypeReference import org.springframework.core.ParameterizedTypeReference
import org.springframework.http.ResponseEntity import org.springframework.http.ResponseEntity

View File

@ -19,7 +19,7 @@ package org.springframework.web.reactive.function.client
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.reactive.asFlow import kotlinx.coroutines.reactive.asFlow
import kotlinx.coroutines.reactive.awaitSingle import kotlinx.coroutines.reactor.awaitSingle
import kotlinx.coroutines.reactor.awaitSingleOrNull import kotlinx.coroutines.reactor.awaitSingleOrNull
import kotlinx.coroutines.reactor.asFlux import kotlinx.coroutines.reactor.asFlux
import kotlinx.coroutines.reactor.mono import kotlinx.coroutines.reactor.mono

View File

@ -17,7 +17,7 @@
package org.springframework.web.reactive.function.server package org.springframework.web.reactive.function.server
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.reactive.awaitSingle import kotlinx.coroutines.reactor.awaitSingle
import kotlinx.coroutines.reactor.mono import kotlinx.coroutines.reactor.mono
import org.springframework.core.io.Resource import org.springframework.core.io.Resource
import org.springframework.http.HttpMethod import org.springframework.http.HttpMethod

View File

@ -16,7 +16,7 @@
package org.springframework.web.reactive.function.server package org.springframework.web.reactive.function.server
import kotlinx.coroutines.reactive.awaitSingle import kotlinx.coroutines.reactor.awaitSingle
/** /**
* Coroutines variant of [RenderingResponse.Builder.build]. * Coroutines variant of [RenderingResponse.Builder.build].

View File

@ -18,7 +18,7 @@ package org.springframework.web.reactive.function.server
import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.reactor.awaitSingleOrNull import kotlinx.coroutines.reactor.awaitSingleOrNull
import kotlinx.coroutines.reactive.awaitSingle import kotlinx.coroutines.reactor.awaitSingle
import kotlinx.coroutines.reactive.asFlow import kotlinx.coroutines.reactive.asFlow
import org.springframework.core.ParameterizedTypeReference import org.springframework.core.ParameterizedTypeReference
import org.springframework.http.MediaType import org.springframework.http.MediaType

View File

@ -17,7 +17,7 @@
package org.springframework.web.reactive.function.server package org.springframework.web.reactive.function.server
import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.reactive.awaitSingle import kotlinx.coroutines.reactor.awaitSingle
import org.reactivestreams.Publisher import org.reactivestreams.Publisher
import org.springframework.core.ParameterizedTypeReference import org.springframework.core.ParameterizedTypeReference
import org.springframework.http.MediaType import org.springframework.http.MediaType

View File

@ -17,7 +17,7 @@
package org.springframework.web.reactive.server package org.springframework.web.reactive.server
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.reactive.awaitSingle import kotlinx.coroutines.reactor.awaitSingle
import kotlinx.coroutines.reactor.mono import kotlinx.coroutines.reactor.mono
import org.springframework.http.codec.multipart.Part import org.springframework.http.codec.multipart.Part
import org.springframework.util.MultiValueMap import org.springframework.util.MultiValueMap