Created
November 22, 2019 17:19
-
-
Save vigoo/fbd2ebb4505e66cb2c2ace2e517709e0 to your computer and use it in GitHub Desktop.
prox 3/13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import zio.interop.catz._ | |
Blocker[RIO[Console, ?]].use { blocker => | |
for { | |
// ... | |
_ <- console.putStrLn("Starting external process...") | |
_ <- (Process[Task]("echo", List("Hello world!")) > tempFile.toPath).start(blocker) | |
// ... | |
} yield () | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment