akka/akka-core
Voir sur GitHubAkka Typed / Persistence : add .recover to Effect.persist for faster failure notification
Open
#27 426 ouverte le 26 juil. 2019
1 - triagedhelp wantedt:typed
Métriques du dépôt
- Stars
- (13 277 stars)
- Métriques de merge PR
- (Merge moyen 8j 19h) (10 PRs mergées en 30 j)
Description
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)
}