blob: 6e9d4b729a872ccf727d31dc161d9bd610cb421e (
plain) (
blame)
1
2
3
4
5
6
7
8
|
import scala.concurrent.Future // <-- if you move the import *inside* the package object, then it all works fine!!
package object nodescala {
implicit class FutureCompanionOps[T](val f: Future.type) extends AnyVal {
def always[T](value: T): Future[T] = Promise[T].success(value).future
}
}
|