[akka-user] Re: [akka-streams] Generic streams and abstract types

2017-07-12 Thread Jeff
Thanks for the great suggestions - I eventually came to the "custom tuple" solution myself and it seems to work well. As for the issue of complexity, it's actually not as complex as it sounds. I'm using Http().superPool() to make api requests and I wanted to avoid having to create a separate s

[akka-user] Re: [akka-streams] Generic streams and abstract types

2017-07-12 Thread johannes . rudolph
Hi Jeff, your API seems quite complex. I don't know the purpose of it so I cannot suggest anything but I'd try to simplify. :) That said, your problem seems to be that you cannot write a concrete type that would express the dependency between the two components of the tuple `(RequestBuilder, P