akka/akka-core

simplify javadsl Flow.recoverWith

Ouverte

#24 992 ouverte le 26 avr. 2018

 (5 commentaires) (0 réaction) (0 personne assignée)Scala (3 547 forks)batch import
1 - triagedhelp wantedt:stream

Métriques du dépôt

Stars
 (13 277 étoiles)
Métriques de merge PR
 (Merge moyen 8j 19h) (10 PRs mergées en 30 j)

Description

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.

Guide contributeur