akka/akka-core

Should we make Merges easier to treat as Sources?

Open

#23,032 opened on May 25, 2017

View on GitHub
 (1 comment) (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

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.

Contributor guide