akka/akka-core

Should we make Merges easier to treat as Sources?

Aberta

#23.032 aberto em 25 de mai. de 2017

 (1 comentário) (0 reação) (0 responsável)Scala (3.547 forks)batch import
1 - triagedhelp wantedt:stream

Métricas do repositório

Stars
 (13.277 estrelas)
Métricas de merge de PR
 (Mesclagem média 8d 19h) (10 fundiu PRs em 30d)

Description

As mentioned by @QmQvl on gitter: is mergePreferred (http://doc.akka.io/docs/akka/current/scala/stream/stages-overview.html#mergepreferred) not available outside GraphDSL? having to write at least 4-5 lines of ceremonious code is not that much cleaner, arguably 🙃

There is some truth to that - as we know the GraphDSL is the "power user mode", yet already for a MergePreferred people need to drop down to it.

Should we re-consider and make all Merges be usable as "merge these things and give me a source"? I personally think it would be nicer this way, sending in a proposal PR.

Guia do colaborador