File tree 3 files changed +7
-6
lines changed
krpc/krpc-test/src/commonTest/kotlin/kotlinx/rpc/krpc/test/cancellation
tests/compiler-plugin-tests/src/testData/diagnostics 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -694,6 +694,7 @@ class CancellationTest {
694
694
}
695
695
696
696
@Test
697
+ @Ignore // KRPC-169
697
698
fun testGCNonSuspendable () = runCancellationTest {
698
699
val firstDone = CompletableDeferred <Unit >()
699
700
val latch = CompletableDeferred <Unit >()
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import kotlinx.serialization.Contextual
12
12
import kotlinx.rpc.annotations.Rpc
13
13
import kotlinx.rpc.krpc.streamScoped
14
14
import kotlinx.rpc.krpc.withStreamScope
15
- import kotlinx.rpc.krpc.StreamScope
15
+ import <!DEPRECATION!> kotlinx.rpc.krpc.StreamScope<!>
16
16
import kotlinx.rpc.krpc.invokeOnStreamScopeCompletion
17
17
import kotlinx.rpc.internal.utils.ExperimentalRpcApi
18
18
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import kotlinx.serialization.Contextual
29
29
import kotlinx.rpc.annotations.Rpc
30
30
import kotlinx.rpc.krpc.streamScoped
31
31
import kotlinx.rpc.krpc.withStreamScope
32
- import kotlinx.rpc.krpc.StreamScope
32
+ import <!DEPRECATION!> kotlinx.rpc.krpc.StreamScope<!>
33
33
import kotlinx.rpc.krpc.invokeOnStreamScopeCompletion
34
34
import kotlinx.rpc.internal.utils.ExperimentalRpcApi
35
35
@@ -81,8 +81,8 @@ interface MyService {
81
81
}
82
82
83
83
fun main (): Unit = runBlocking {
84
- < ! STREAM_SCOPE_FUNCTION_IN_RPC ! > streamScoped< ! > {}
85
- val scope = < ! STREAM_SCOPE_FUNCTION_IN_RPC ! > StreamScope < ! > (Job ())
86
- < ! STREAM_SCOPE_FUNCTION_IN_RPC ! > withStreamScope< ! > (scope) {}
87
- < ! STREAM_SCOPE_FUNCTION_IN_RPC ! > invokeOnStreamScopeCompletion< ! > {}
84
+ < ! DEPRECATION , STREAM_SCOPE_FUNCTION_IN_RPC ! > streamScoped< ! > {}
85
+ val scope = < ! DEPRECATION , STREAM_SCOPE_FUNCTION_IN_RPC ! > StreamScope < ! > (Job ())
86
+ < ! DEPRECATION , STREAM_SCOPE_FUNCTION_IN_RPC ! > withStreamScope< ! > (scope) {}
87
+ < ! DEPRECATION , STREAM_SCOPE_FUNCTION_IN_RPC ! > invokeOnStreamScopeCompletion< ! > {}
88
88
}
You can’t perform that action at this time.
0 commit comments