Last active
September 20, 2019 06:18
-
-
Save adamw/5919f235d3d8b239e202ab39a6e03112 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 sendEmail: IO[Unit] = IO(println("Sending email")) | |
val sendEmailWithConnection: ConnectionIO[Unit] = | |
sendEmail.to[ConnectionIO] | |
val sendEmailInTx: IO[Unit] = sendEmailWithConnection.transact(transactor) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment