Upgrade to Coroutines 1.3.0-M2

This commit is contained in:
Sebastien Deleuze
2019-07-09 11:33:22 +02:00
parent 47d60b34f8
commit ca75c2843a
17 changed files with 45 additions and 57 deletions

View File

@@ -21,7 +21,7 @@ import io.rsocket.RSocketFactory
import io.rsocket.frame.decoder.PayloadDecoder
import io.rsocket.transport.netty.server.CloseableChannel
import io.rsocket.transport.netty.server.TcpServerTransport
import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
@@ -49,6 +49,7 @@ import java.time.Duration
* @author Sebastien Deleuze
* @author Rossen Stoyanchev
*/
@ExperimentalCoroutinesApi
class RSocketClientToServerCoroutinesIntegrationTests {
@Test
@@ -104,7 +105,7 @@ class RSocketClientToServerCoroutinesIntegrationTests {
.verify(Duration.ofSeconds(5))
}
@FlowPreview
@ExperimentalCoroutinesApi
@Controller
class ServerController {
@@ -159,7 +160,7 @@ class RSocketClientToServerCoroutinesIntegrationTests {
@Configuration
open class ServerConfig {
@FlowPreview
@ExperimentalCoroutinesApi
@Bean
open fun controller(): ServerController {
return ServerController()

View File

@@ -2,7 +2,7 @@ package org.springframework.messaging.rsocket
import io.mockk.every
import io.mockk.mockk
import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.toList
import kotlinx.coroutines.runBlocking
@@ -20,7 +20,7 @@ import java.util.concurrent.CompletableFuture
*
* @author Sebastien Deleuze
*/
@FlowPreview
@ExperimentalCoroutinesApi
class RSocketRequesterExtensionsTests {
private val stringTypeRefMatcher: (ParameterizedTypeReference<*>) -> Boolean = { it.type == String::class.java }