ursus
05/23/2025, 12:18 AMokio
exists and works, but ktor
returns a ByteReadChannel
which is suspending.
Then I see <http://kotlinx.io|kotlinx.io>
with it's Source/Sink
which is suspending, but then doesn't allow to write to a file?jw
05/23/2025, 12:19 AMursus
05/23/2025, 12:21 AMByteReadChannel
?
val sink = FileSystem.SYSTEM.sink(path).buffer()
try {
// suspending work here
} finally {
sink.close()
}
something like this?ursus
05/23/2025, 12:27 AMFileSystem
like type coming to <http://kotlinx.io|kotlinx.io>
?