Skip to content

Instantly share code, notes, and snippets.

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