Razi Kheir
05/30/2019, 12:51 AMdave
05/30/2019, 7:44 AMRazi Kheir
05/31/2019, 3:12 AMval asyncClient = ApacheAsyncClient()
asyncClient(Request(Method.GET, “<http://httpbin.org/second/service“>)) {
}
Check response from second service, and response to my original called here.
}
thread {
Thread.sleep(500)
asyncClient.close()
}
But bindContracts to method expects a {request -> response} while I will have to make a new request with a callback inside of that using the async call..
I might still not be used to kotlin but it seems as though one has a non async signature and the other has an async one…dave
05/31/2019, 6:35 AMRazi Kheir
05/31/2019, 8:21 AMdave
05/31/2019, 3:24 PMdave
05/31/2019, 3:25 PM