From ec8f44000b4628a9a56f0f19f706ef65730713e4 Mon Sep 17 00:00:00 2001 From: Wout Werkman Date: Sun, 18 May 2025 09:53:30 +0200 Subject: [PATCH] Update README.md to use non-suspend flows --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0f3901ebf..181b62fe1 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ import kotlinx.rpc.annotations.Rpc @Rpc interface AwesomeService : RemoteService { - suspend fun getNews(city: String): Flow + fun getNews(city: String): Flow suspend fun daysUntilStableRelease(): Int } @@ -35,7 +35,7 @@ class AwesomeServiceImpl( val parameters: AwesomeParameters, override val coroutineContext: CoroutineContext, ) : AwesomeService { - override suspend fun getNews(city: String): Flow { + override fun getNews(city: String): Flow { return flow { emit("Today is 23 degrees!") emit("Harry Potter is in $city!")