The general trend seems to require the user to explicitly import things like implicits, additional operators, or DSL. I think this is good, because it makes things less βmagicalβ and more understandable.
But nothing prevents you from defining the implicit value of the package for your code. Please note: if the implicit ExecutionContext has always been imported by default, you cannot do this.
In the package object:
package object myawsomeconcurrencylibrary { implicit def defaultExecutionContext = scala.concurrent.ExecutionContext.global }
In any class in one package:
package myawsomeconcurrencylibrary object Bla { future { ... }
source share