Reece H. Dunn
01/14/2023, 7:45 PM<http://Dispatchers.IO|Dispatchers.IO>
from kotlinx.coroutines is jvm only.
2. runBlocking
from kotlinx.coroutines is jvm and native only.
Is there a multiplatform example, or platform-specific examples for native and node-js?Big Chungus
01/14/2023, 7:52 PMBig Chungus
01/14/2023, 7:52 PMBig Chungus
01/14/2023, 7:52 PMReece H. Dunn
01/14/2023, 8:06 PMSuspend function 'readUTF8Line' should be called only from a coroutine or another suspend function
error. I don't particularly care about it being multi-threaded, or runBlocking specifically, just how to implement a functioning ktor socket client in multiplatform. -- I'm mentioning runBlocking here as that is what the ktor sample code is using. (Note: I'm new to Kotlin coroutines and ktor sockets, so I don't know the best practices.)Big Chungus
01/14/2023, 8:09 PMBig Chungus
01/14/2023, 8:10 PMReece H. Dunn
01/14/2023, 8:11 PMReece H. Dunn
01/15/2023, 11:09 PM