akka/akka-core

simplify javadsl Flow.recoverWith

オープン

#24,992 opened on 2018/04/26

 (5 件のコメント) (0 件のリアクション) (0 人の担当者)Scala (3,547 件のフォーク)batch import
1 - triagedhelp wantedt:stream

Repository metrics

Stars
 (13,277 個のスター)
PR merge metrics
 (平均マージ 8d 19h) (30d で 10 merged PRs)

説明

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.

コントリビューターガイド