Paweł Kordek
05/07/2019, 9:56 AMfun download(fileName: String, destFile: String): IO<Unit>
Then I would like to download three files, starting at the same time, but stop all downloads when any of them fails:
val files = listOf("small_file", "medium_file", "huge_file")
// Do the magic here
I guess I'm looking for something like ZIO's Fibers https://scalaz.github.io/scalaz-zio/datatypes/fiber.html, but I'm very new to both Kotlin and Arrow so I'm quite lost. Any help appreciated!