def successfulAttempts[A]()

in app/models/Attempt.scala [112:120]


  def successfulAttempts[A](
      attempts: List[Attempt[A]]
  )(implicit ec: ExecutionContext): Attempt[List[A]] = {
    Attempt.Async.Right {
      Future
        .traverse(attempts)(_.asFuture)
        .map(_.collect { case Right(a) => a })
    }
  }