Last active
September 10, 2016 08:07
-
-
Save raulraja/9cdebac37aaba038235bb5effe0cbd0e to your computer and use it in GitHub Desktop.
Wrong Execution Context passed to all ops in the same way via flatMap
This file contains hidden or 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 scala.concurrent.ExecutionContext.global | |
| for { | |
| a <- nonBlocking | |
| b <- simpleDbLookups | |
| c <- expensiveDbLookups | |
| d <- dbWriteOperations | |
| e <- expensiveCpuOperations | |
| } yield result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment