|
Play Framework/Scala example source code file (NoConcurrentExecutionContext.scala)
The NoConcurrentExecutionContext.scala Play Framework example source code
package play.api.libs.iteratee
import org.specs2.matcher.ConcurrentExecutionContext
import scala.concurrent.ExecutionContext
/**
* Provides an antidote to ConcurrentExecutionContext's implicit
* ExecutionContext.
*
* See: https://groups.google.com/d/msg/specs2-users/m5nn4nSNu0Q/aw4sb7ha_LwJ
*/
trait NoConcurrentExecutionContext extends ConcurrentExecutionContext {
// Override value in order to remove the implicit modifier
override val concurrentExecutionContext = ExecutionContext.global
}
Other Play Framework source code examplesHere is a short list of links related to this Play Framework NoConcurrentExecutionContext.scala source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.