def resolveUser(id: Id)(implicit context: ExecutionContext): Future[Option[User]] = authDAO.findAccountById(id)
def fancy = AsyncStack(AuthorityKey ->Blabla) {
implicit request =>
for {
a <- someFutureStuff
b <- anotherFuture
} yield { ... }
}
[error] ...: Cannot find an implicit ExecutionContext. You might pass[error] an (implicit ec: ExecutionContext) parameter to your method[error] or import scala.concurrent.ExecutionContext.Implicits.global.
[error] ...: ambiguous implicit values:[error] both method defaultContext in object Implicits of type => scala.concurrent.ExecutionContext[error] and value context of type scala.concurrent.ExecutionContext[error] match expected type scala.concurrent.ExecutionContext[error] def resolveUser(id: Id)(implicit context: ExecutionContext): Future[Option[User]] = authDAO.findAccountById(id)[error] ^
--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/1fcbf223-96ef-4d9b-9123-168ce196add0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/1fcbf223-96ef-4d9b-9123-168ce196add0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/2961CDC9-59D3-46AE-8825-1CB52D36F61F%40xichar.com.