Skip to content

Instantly share code, notes, and snippets.

@chetkhatri
Created July 25, 2019 13:46
Show Gist options
  • Save chetkhatri/0b7798ffd00dc3f2366bfd09f46e94e2 to your computer and use it in GitHub Desktop.
Save chetkhatri/0b7798ffd00dc3f2366bfd09f46e94e2 to your computer and use it in GitHub Desktop.
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