akka/akka-core
在 GitHub 查看Akka Typed / Persistence : add .recover to Effect.persist for faster failure notification
Open
#27,426 创建于 2019年7月26日
1 - triagedhelp wantedt:typed
仓库指标
- Star
- (13,277 star)
- PR 合并指标
- (平均合并 8天 19小时) (30 天内合并 10 个 PR)
描述
I'd like to be able to notify the replyTo in the case of failure a quickly as possible from Effect.persist. So .recover would be nice. Maybe something like the following:
Effect.persist(ArtifactRead())
.thenRun(_ => replyTo ! Okay())
.recover {
case ex: Exception =>
replyTo ! Failure(ex.getMessage)
}