Ich habe eine Int: Future [Try [Option [Int]]] von dem ich diesen Int-Wert brauche. Ich habe einen Code wie folgt:Future [Try [Option [Int]]] Fehler gefunden: models.TenantGlobalBranding [Fehler] erforderlich: scala.concurrent.Future [?]
def fun(number: Future[Try[Option[Int]]]): Future[Result] = {
val num: Int = number.flatMap(x => processTry(x))
}
def processTry(x: Try[Option[Int]]): Int = processOption(x.getOrElse(Some(101)))
def processOption(x: Option[Int]): Int = x.getOrElse(101)
ich diesen Fehler erforderlich: [?] Scala.concurrent.Future
Was ist 'process',' process2'? Was sind ihre Unterschriften? Bitte poste ein [MCVE] deines Problems. –