Thread
#web-mpp
    archana 0623

    archana 0623

    1 year ago
    Can anyone help me understand how can we handle asynchronous network calls with ktor http client like adding loader and when it is either success or error then hide it and load appropriate data, with promises and observables it could be done through success or error callback but how can we achieve the same with ktor http client?
    andylamax

    andylamax

    1 year ago
    with ktor just wrap your request in a try catch block