Kamo Spertsyan
11/08/2021, 8:33 AMe5l
11/08/2021, 8:57 AMandylamax
11/08/2021, 9:07 AMKamo Spertsyan
11/08/2021, 9:08 AMe5l
11/08/2021, 9:09 AMKamo Spertsyan
11/08/2021, 9:09 AMe5l
11/08/2021, 9:14 AMKamo Spertsyan
11/08/2021, 9:18 AMandylamax
11/08/2021, 9:18 AMe5l
11/08/2021, 9:22 AMKamo Spertsyan
11/08/2021, 9:22 AMBut for some platforms (Kotlin/JS), the cost of linear logic is so high that would make me settle with a callback based API for my multiplatform projectsAnd you build your own proxy with callback api over the coroutine-based libraries like ktor, right?
e5l
11/08/2021, 9:23 AMandylamax
11/08/2021, 9:31 AMAnd you build your own proxy with callback api over the coroutine-based libraries like ktor, right?
Not really, just have a pure callback based on common code, and have something like suspending await methods, which one can opt to use over the default suspending ones. So, ktor-client-core becomes purely callback based, not depending on coroutines at all, and have something like ktor-client-ktx wich depends on coroutines and has those methods. Makes it easy to write common code independent of coroutines and use it in optionally in platforms like kotlin/jvm or kotlin/native
anton.bannykh
11/08/2021, 10:19 AMandylamax
11/08/2021, 3:30 PManton.bannykh
11/09/2021, 7:22 AMandylamax
11/10/2021, 3:52 AManton.bannykh
11/12/2021, 10:20 AM