https://kotlinlang.org logo
d

Dragos Rachieru

05/02/2022, 9:22 AM
Hello, about
okio
, is there a way to read a path using
ByteReadChannel
? I am trying to create a multiplatform image loading library and I want to create something like this: https://github.com/alialbaali/Kamel/blob/main/kamel-core/src/jvmMain/kotlin/io/kamel/core/fetcher/JvmFileFetcher.kt
j

jessewilson

05/02/2022, 11:13 AM
You'll need to write your own adapters, both to coroutines and to nio
It should be relatively mechanical, and you'll need to decide when to send work to the IO Dispatcher
d

Dragos Rachieru

05/02/2022, 2:32 PM
I don't know how to do this 😔
14 Views