Skip to content

Instantly share code, notes, and snippets.

@robhinds
Created January 31, 2019 11:27
Show Gist options
  • Save robhinds/2298d5f9c345e6824c99f4c3577a1785 to your computer and use it in GitHub Desktop.
Save robhinds/2298d5f9c345e6824c99f4c3577a1785 to your computer and use it in GitHub Desktop.
trait S3DocumentRepository[Future] {
def documents:Future[Seq[Document]] = ???
}
@kelnos
Copy link

kelnos commented Dec 19, 2019

I was a little confused when I read this in your blog post. Don't you really mean to write something like the following?

object S3DocumentRepository extends DocumentRepository[Future] {
  def documents: Future[Seq[Document]] = ???
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment