Skip to content

Instantly share code, notes, and snippets.

@raulraja
Last active September 10, 2016 08:07
Show Gist options
  • Select an option

  • Save raulraja/9cdebac37aaba038235bb5effe0cbd0e to your computer and use it in GitHub Desktop.

Select an option

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
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