https://kotlinlang.org logo
Title
a

alex

03/08/2018, 1:00 PM
Are the both HTTP call implementation semantically identical, i.e. are both performing an async fetch? https://github.com/JetBrains/kotlinconf-app/blob/master/web/src/main/kotlin/org/jetbrains/kotlinconf/api/ajaxUtil.kt (1) implementation is an async fetch according to Kontlin's semantics? (2) implementation is an async fetch implemented with JavaScript semantics? Is my understanding correct? @orangy
o

orangy

03/08/2018, 1:07 PM
Not sure where do you see 2 http implementations? Second is just trivial
async
implementation for JS, there were no #coroutines builders at that time.
a

alex

03/08/2018, 1:22 PM
just replace my "http impl" with "http retrieval mechanisms". So both are not doing essentially the same and (2) is the reference/idiomatic way on using async http retrieval with JS Promises?
ah, I see the async is not retrieving anything like the first one