Hello guys ! Any one knows how to post API hit in ...
# announcements
c
Hello guys ! Any one knows how to post API hit in couroutins in kotlin plslz help me out any link or references thanks
g
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
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