Skip to content

Commit

Permalink
prepare beta08
Browse files Browse the repository at this point in the history
  • Loading branch information
JensKlingenbergEdeka committed Jul 11, 2022
1 parent a578562 commit a97f725
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ import kotlinx.coroutines.flow.Flow

interface StarWarsApi {
@GET("people/{id}/")
suspend fun getPersonByIdResponse(@Path("id") peopleId: Int): String

@GET("people/{id}/")
fun getPersonByIdFlowResponse(@Path("id") peopleId: Int): Flow<String>
suspend fun getPersonByIdResponse(@Path("id") peopleId: Int): People

@GET("people/{id}/")
fun getPeopleByIdFlowResponse(@Path("id") peopleId: Int): Flow<People>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ fun main() {


println("Launch")
starWarsApi.getPersonByIdFlowResponse(3).collect {
println("Js: " + it)
}


starWarsApi.getPeopleByIdFlowResponse(3).collect {
println("JS getPeopleByIdFlowResponse:" + it.name)
Expand Down

0 comments on commit a97f725

Please sign in to comment.