title: Slick 3.1.x method returns empty list
body: <p>This method uses Slick 3.1.x and it returns correctly an object of type <code>Future[List[Analysis]]</code> however the list is always empty. Why is that and how to fix this? </p>
  
  <pre><code>  def readMany = {
      val db = Database.forConfig("db1")
      var list = new ListBuffer[Analysis]()
      try {
          val query = TableQuery[AnalysisDB]
          val action = query.sortBy(_.name).result
          val future = db.run(action).map(_.foreach {
            case (analysis) =&gt; list += Analysis ( analysis.sk, analysis.name )
          })
          Future { list.toList }
      } finally db.close
    }
  </code></pre>