def successfulAttempts[A]()

in src/main/scala/com/gu/ssm/utils/attempt/Attempt.scala [149:153]


  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 })
    }
  }