akka/akka-core

Inconsistent signature of Flow#recoverWithRetries

Open

#20,606 opened on May 24, 2016

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Scala (3,547 forks)batch import
1 - triagedhelp wantedt:stream

Repository metrics

Stars
 (13,277 stars)
PR merge metrics
 (Avg merge 8d 19h) (10 merged PRs in 30d)

Description

We discussed this issue at Gitter.

It feels like recovery function should be inside separate argument group, i.e.

recoverWithRetries(42) {
  case _ => Source.empty
}

looks much better than

recoverWithRetries(42, {
  case _ => Source.empty
})

Contributor guide