We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ead049 commit d13fe18Copy full SHA for d13fe18
README.md
@@ -24,7 +24,7 @@ import kotlinx.rpc.annotations.Rpc
24
25
@Rpc
26
interface AwesomeService : RemoteService {
27
- suspend fun getNews(city: String): Flow<String>
+ fun getNews(city: String): Flow<String>
28
29
suspend fun daysUntilStableRelease(): Int
30
}
@@ -35,7 +35,7 @@ class AwesomeServiceImpl(
35
val parameters: AwesomeParameters,
36
override val coroutineContext: CoroutineContext,
37
) : AwesomeService {
38
- override suspend fun getNews(city: String): Flow<String> {
+ override fun getNews(city: String): Flow<String> {
39
return flow {
40
emit("Today is 23 degrees!")
41
emit("Harry Potter is in $city!")
0 commit comments