Skip to content

Commit 48eb9e3

Browse files
committed
Otus-Android#1 CatsService refactored to suspend
1 parent bc8b28c commit 48eb9e3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
package otus.homework.coroutines
22

3-
import retrofit2.Call
43
import retrofit2.http.GET
54

65
interface CatsService {
76

87
@GET("fact")
9-
fun getCatFact() : Call<Fact>
8+
suspend fun getCatFact() : Fact
109
}

0 commit comments

Comments
 (0)