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!")