Manuel Pérez Alcolea
ByteReadChannel
ByteWriteChannel
Operations on this channel cannot be invoked concurrently.
val url = URL(...) val targetDir = Path.of(...) withContext(<http://Dispatchers.IO|Dispatchers.IO>) { url.openStream().use { stream -> Files.copy(stream, targetDir) } }
Aleksei Tirman [JB]
A modern programming language that makes developers happier.