=str #16608 adds section in readme explaining null is illegal

This commit is contained in:
Konrad Malawski 2015-04-15 17:47:09 +02:00
parent 91b0e05b0c
commit 88e013b99b
2 changed files with 10 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: