def asFuture()

in src/main/scala/com/gu/ssm/utils/attempt/Attempt.scala [57:62]


  def asFuture(implicit ec: ExecutionContext): Future[Either[FailedAttempt, A]] = {
    underlying recover { case err =>
      val apiErrors = FailedAttempt(Failure(err.getMessage, "Unexpected error", UnhandledError, err))
      scala.Left(apiErrors)
    }
  }