so before i try to use ktor-httpclient for something thats impossible..
when i try to use it on javascript i can not run it in the background because of the lack of threading correct ?
so i i want to do things i have to make do with simple GET and POST requests instead of keeping open some connection and processing data in aprallel
or can i do that in kotlin-js ?
b
bdawg.io
04/21/2019, 12:49 AM
It depends on the platform. JavaScript only has one user thread. If you use the platform's http clients (ie, node's http client/browser's fetch or XHR), they are asynchronous (non-blocking to the user thread)
As far as Ktor client engine implements that use those APIs, I'm not familiar enough with Ktor on JS to say.