Skip to content

Commit b3d236e

Browse files
authored
Update strict-mode.topic
According to the documentation below, it is not allowed to use flows as a result of a suspending function. Therefore this must be the correct way to do it
1 parent f4aaf9a commit b3d236e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
interface Service {
3636
val old: Flow<Int> // deprecated
3737

38-
suspend fun new(): Flow<Int> // store flow locally
38+
fun new(): Flow<Int> // store flow locally
3939
}
4040
</code-block>
4141
</chapter>

0 commit comments

Comments
 (0)