Amending docs for KillSwitch #20708 (#20716)

This commit is contained in:
Stefano Bonetti 2016-06-06 10:28:04 +01:00 committed by Konrad Malawski
parent 0263774f82
commit fc58fa1f05
2 changed files with 5 additions and 5 deletions

View file

@ -11,12 +11,12 @@ Controlling graph completion with KillSwitch
A ``KillSwitch`` allows the completion of graphs of ``FlowShape`` from the outside. It consists of a flow element that
can be linked to a graph of ``FlowShape`` needing completion control.
The ``KillSwitch`` trait allows to complete or fail the graph(s).
The ``KillSwitch`` interface allows to:
.. includecode:: ../../../../akka-stream/src/main/scala/akka/stream/KillSwitch.scala
:include: kill-switch
* complete the graph(s) via ``shutdown()``
* fail the graph(s) via ``abort(Throwable error)``
After the first call to either ``shutdown`` and ``abort``, all subsequent calls to any of these methods will be ignored.
After the first call to either ``shutdown`` or ``abort``, all subsequent calls to any of these methods will be ignored.
Graph completion is performed by both
* completing its downstream

View file

@ -16,7 +16,7 @@ The ``KillSwitch`` trait allows to complete or fail the graph(s).
.. includecode:: ../../../../akka-stream/src/main/scala/akka/stream/KillSwitch.scala
:include: kill-switch
After the first call to either ``shutdown`` and ``abort``, all subsequent calls to any of these methods will be ignored.
After the first call to either ``shutdown`` or ``abort``, all subsequent calls to any of these methods will be ignored.
Graph completion is performed by both
* completing its downstream