Skip to content

Commit 25a42ab

Browse files
authored
Update strict-mode.topic (#380)
1 parent b2655e6 commit 25a42ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/pages/kotlinx-rpc/topics/strict-mode.topic

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
}
129129

130130
fun consumer(service: Service, scope: CoroutineScope) {
131-
val flow = service.new()
131+
val flow = service.newServer()
132132
scope.launch {
133133
service.newClient(flow { /* ... */ })
134134

@@ -142,7 +142,7 @@
142142
suspend fun consumer(service: Service) {
143143
service.newClient(flow { /* ... */ })
144144

145-
service.new().collect {
145+
service.newServer().collect {
146146
// ...
147147
}
148148
}

0 commit comments

Comments
 (0)