Corrected onPush description in Custom stream processing docs #20959 (#20960)

This commit is contained in:
Jacek Kunicki 2016-07-14 21:54:33 +02:00 committed by Konrad Malawski
parent 7ef1b78ae7
commit 6e0a2caf4b
2 changed files with 2 additions and 3 deletions

View file

@ -105,7 +105,7 @@ The following operations are available for *input* ports:
The events corresponding to an *input* port can be received in an :class:`AbstractInHandler` instance registered to the
input port using ``setHandler(in, handler)``. This handler has three callbacks:
* ``onPush()`` is called when the output port has now a new element. Now it is possible to acquire this element using
* ``onPush()`` is called when the input port has now a new element. Now it is possible to acquire this element using
``grab(in)`` and/or call ``pull(in)`` on the port to request the next element. It is not mandatory to grab the
element, but if it is pulled while the element has not been grabbed it will drop the buffered element.
* ``onUpstreamFinish()`` is called once the upstream has completed and no longer can be pulled for new elements.

View file

@ -108,7 +108,7 @@ The following operations are available for *input* ports:
The events corresponding to an *input* port can be received in an :class:`InHandler` instance registered to the
input port using ``setHandler(in, handler)``. This handler has three callbacks:
* ``onPush()`` is called when the output port has now a new element. Now it is possible to acquire this element using
* ``onPush()`` is called when the input port has now a new element. Now it is possible to acquire this element using
``grab(in)`` and/or call ``pull(in)`` on the port to request the next element. It is not mandatory to grab the
element, but if it is pulled while the element has not been grabbed it will drop the buffered element.
* ``onUpstreamFinish()`` is called once the upstream has completed and no longer can be pulled for new elements.
@ -481,4 +481,3 @@ that he gave up).
It is interesting to note that a simplified form of this problem has found its way into the `dotty test suite <https://github.com/lampepfl/dotty/pull/1186/files>`_.
Dotty is the development version of Scala on its way to Scala 3.