Skip to content

Instantly share code, notes, and snippets.

@softberries
Created November 29, 2019 07:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save softberries/b502a901ce5850221a3a8c77426a07ab to your computer and use it in GitHub Desktop.
Save softberries/b502a901ce5850221a3a8c77426a07ab to your computer and use it in GitHub Desktop.
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