Merge pull request #17210 from ktoso/wip-concat-docs-ktoso

Document mapConcat's Seq should not contain nulls
This commit is contained in:
Roland Kuhn 2015-04-20 21:22:32 +02:00
commit d6f5b4ad2d
5 changed files with 19 additions and 0 deletions

View file

@ -108,6 +108,11 @@ There are various ways to wire up different parts of a stream, the following exa
.. includecode:: code/docs/stream/FlowDocSpec.scala#flow-connecting
Illegal stream elements
^^^^^^^^^^^^^^^^^^^^^^^
In accordance to the Reactive Streams specification (`Rule 2.13 <https://github.com/reactive-streams/reactive-streams-jvm#2.13>`_)
Akka Streams do not allow ``null`` to be passed through the stream as an element. In case you want to model the concept
of absence of a value we recommend using ``scala.Option`` or ``scala.util.Either``.
.. _back-pressure-explained-scala: