Skip to content

Commit d13fe18

Browse files
authored
Update README.md to use non-suspend flows (#342)
1 parent 4ead049 commit d13fe18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import kotlinx.rpc.annotations.Rpc
2424

2525
@Rpc
2626
interface AwesomeService : RemoteService {
27-
suspend fun getNews(city: String): Flow<String>
27+
fun getNews(city: String): Flow<String>
2828

2929
suspend fun daysUntilStableRelease(): Int
3030
}
@@ -35,7 +35,7 @@ class AwesomeServiceImpl(
3535
val parameters: AwesomeParameters,
3636
override val coroutineContext: CoroutineContext,
3737
) : AwesomeService {
38-
override suspend fun getNews(city: String): Flow<String> {
38+
override fun getNews(city: String): Flow<String> {
3939
return flow {
4040
emit("Today is 23 degrees!")
4141
emit("Harry Potter is in $city!")

0 commit comments

Comments
 (0)