title: Scala Akka Stream: How to Pass Through a Seq
body: <p>I'm trying to wrap some blocking calls in <code>Future</code>.The return type is <code>Seq[User]</code> where <code>User</code> is a <code>case class</code>. The following just wouldn't compile with complaints of various overloaded versions being present. Any suggestions? I tried almost all the variations is <code>Source.apply</code> without any luck.</p>
  
  <pre><code>// All I want is Seq[User] =&gt; Future[Seq[User]]
  
  def findByFirstName(firstName: String) = {
    val users: Seq[User] = userRepository.findByFirstName(firstName)
  
    val sink = Sink.fold[User, User](null)((_, elem) =&gt; elem)
  
    val src = Source(users) // doesn't compile
  
    src.runWith(sink)
  }
  </code></pre>