* StreamTcp and Http extensions now return Flows and Sources that can be materialized later * Flow can now be completed with another flow to be turned into a runnable flow
This commit is contained in:
parent
cac9137aa9
commit
672d4ed091
43 changed files with 1327 additions and 1236 deletions
|
|
@ -438,6 +438,13 @@ class Source[+Out](delegate: scaladsl.Source[Out]) {
|
|||
def flatten[U](strategy: akka.stream.FlattenStrategy[Out, U]): javadsl.Source[U] =
|
||||
new Source(delegate.flatten(strategy))
|
||||
|
||||
/**
|
||||
* Add a key that will have a value available after materialization.
|
||||
* The key can only use other keys if they have been added to the source
|
||||
* before this key. This also includes the keyed source if applicable.
|
||||
*/
|
||||
def withKey[T](key: javadsl.Key[T]): javadsl.Source[Out] =
|
||||
new Source(delegate.withKey(key.asScala))
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue