I'm afraid not, I had similar problems, especially when using akkaand importing an implicit execution context from ActorSystemin some cases. I recommend defining a value instead of importing. One such example would be:
// Avoid importing the execution context like this
class MyActor extends Actor {
import context.system.dispatcher
}
// Define it explicitly instead
class MyActor extends Actor {
implicit val ec = context.system.dispatcher
}
Hope this helps you.
source
share