akka/akka-core

simplify javadsl Flow.recoverWith

Aperta

#24.992 aperta il 26 apr 2018

 (5 commenti) (0 reazioni) (0 assegnatari)Scala (3547 fork)batch import
1 - triagedhelp wantedt:stream

Metriche repository

Star
 (13.277 stelle)
Metriche merge PR
 (Merge medio 8g 19h) (10 PR mergiate in 30 g)

Descrizione

PartialFunction is a pain to use in Java and for recoverWith a simple Class<Throwable> parameter would be sufficient.

Similar with mapError. Class<Throwable> parameter and a Function<Exc, Throwable>

By the way, I suggest removing the deprecation of recoverWith since I think in most of the time the attempt count is not interesting, especially since there is no reset of the count or notion of failures per time unit.

Guida contributor