File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -694,6 +694,7 @@ class CancellationTest {
694694 }
695695
696696 @Test
697+ @Ignore // KRPC-169
697698 fun testGCNonSuspendable () = runCancellationTest {
698699 val firstDone = CompletableDeferred <Unit >()
699700 val latch = CompletableDeferred <Unit >()
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import kotlinx.serialization.Contextual
1212import kotlinx.rpc.annotations.Rpc
1313import kotlinx.rpc.krpc.streamScoped
1414import kotlinx.rpc.krpc.withStreamScope
15- import kotlinx.rpc.krpc.StreamScope
15+ import <!DEPRECATION!> kotlinx.rpc.krpc.StreamScope<!>
1616import kotlinx.rpc.krpc.invokeOnStreamScopeCompletion
1717import kotlinx.rpc.internal.utils.ExperimentalRpcApi
1818
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import kotlinx.serialization.Contextual
2929import kotlinx.rpc.annotations.Rpc
3030import kotlinx.rpc.krpc.streamScoped
3131import kotlinx.rpc.krpc.withStreamScope
32- import kotlinx.rpc.krpc.StreamScope
32+ import <!DEPRECATION!> kotlinx.rpc.krpc.StreamScope<!>
3333import kotlinx.rpc.krpc.invokeOnStreamScopeCompletion
3434import kotlinx.rpc.internal.utils.ExperimentalRpcApi
3535
@@ -81,8 +81,8 @@ interface MyService {
8181}
8282
8383fun 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< ! > {}
8888}
You can’t perform that action at this time.
0 commit comments