akka/akka-core

simplify javadsl Flow.recoverWith

开放

#24,992 创建于 2018年4月26日

 (5 条评论) (0 个反应) (0 位负责人)Scala (3,547 个派生)batch import
1 - triagedhelp wantedt:stream

仓库指标

星标
 (13,277 个星标)
PR 合并指标
 (平均合并 8天 19小时) (30 天内合并 10 个 PR)

描述

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.

贡献者指南