Created
July 25, 2019 13:46
-
-
Save chetkhatri/0b7798ffd00dc3f2366bfd09f46e94e2 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
import cats.effect.IO | |
import cats.implicits._ | |
object CatsEffect extends App { | |
val effect = for { | |
_ <- IO(println("1")) | |
_ <- IO(println("2")) | |
} yield () | |
effect.unsafeRunSync | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment