Created
November 29, 2019 07:37
-
-
Save softberries/b502a901ce5850221a3a8c77426a07ab to your computer and use it in GitHub Desktop.
This file contains 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
val fut = Future { println("hey fut!") } | |
val ioa = IO.fromFuture(IO { | |
fut | |
}) | |
val program = | |
for { | |
_ <- ioa | |
_ <- ioa | |
} yield () | |
program.unsafeRunSync() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment