akka/akka-core
GitHub で見るAkka Typed / Persistence : add .recover to Effect.persist for faster failure notification
Open
#27,426 opened on 2019年7月26日
1 - triagedhelp wantedt:typed
Repository metrics
- Stars
- (13,277 stars)
- PR merge metrics
- (平均マージ 8d 19h) (30d で 10 merged PRs)
説明
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)
}