I'm doing a port of a Kotlin/JVM to multi platform...
# multiplatform
f
I'm doing a port of a Kotlin/JVM to multi platform (JVM/Js/Native), is there any libraries I can call on for basic file i/o aka read a text file to a string and write a text file to a string (i assume it exist but I can't find it). Also I've got concurrency in the JVM version using worker threads (read jobs from a task queue and write results to a result queue), any multi-platform equivalent library?
k
Concurrency: There's a Worker in native. You could probably build a simple wrapper around that. I don't know if there's a supported library around that kind of simple threading, though.
Square is building a file library in OKIO for multiplatform, but not JS, and I don't know the day-to-day status: https://github.com/square/okio/tree/master/okio-files
Looks like it's not iOS, just desktop. I'd guess you could add that in, but you'll need to do some manual stuff for sure.
f
Thanks