akka icon indicating copy to clipboard operation
akka copied to clipboard

Feature request: Add `mask`/`onErrorComplete`/`recoverWithComplete`?

Open He-Pin opened this issue 3 years ago • 0 comments

Just a like .recoverWithRetries(-1, { case _: Throwable => Source.empty }) which recover the error with a complete.

And in fs2 there is a mask method:

def mask: Stream[F, O] = this.handleErrorWith(_ => Stream.empty)

And reactor just add the onErrorComplete in https://github.com/reactor/reactor-core/pull/3159 too.

refs: https://github.com/akka/akka/pull/24985 refs: https://github.com/akka/akka/issues/31455 refs:https://github.com/akka/akka/issues/24951

He-Pin avatar Sep 05 '22 18:09 He-Pin