https://kotlinlang.org logo
#announcements
Title
# announcements
c

chaddha

07/22/2019, 5:21 AM
Hello guys ! Any one knows how to post API hit in couroutins in kotlin plslz help me out any link or references thanks
g

gildor

07/22/2019, 5:59 AM
what is API hit? Could you please give more context, what kind API, what are you doing, are you talking about some library or just generic question etc
a

Abhay Mathur

07/24/2019, 7:23 AM
May be this can help you to understand how we can make an API request using co-routines : GlobalScope.launch(Dispatchers.IO) { when (val result = service.functionName(params)) { //handle result here.... } } }
🤔 1