Fix documentation for Unzip class (#23333) (#23334)

This commit is contained in:
Jim Riordan 2017-07-11 22:30:52 +10:00 committed by Arnout Engelen
parent 05c7975dc0
commit c7ac498520

View file

@ -877,9 +877,9 @@ object ZipWith extends ZipWithApply
* *
* An `Unzip` has one `in` port and one `left` and one `right` output port. * An `Unzip` has one `in` port and one `left` and one `right` output port.
* *
* '''Emits when''' all of the outputs stops backpressuring and there is an input element available * '''Emits when''' all of the outputs stop backpressuring and there is an input element available
* *
* '''Backpressures when''' any of the outputs backpressures * '''Backpressures when''' any of the outputs backpressure
* *
* '''Completes when''' upstream completes * '''Completes when''' upstream completes
* *
@ -893,7 +893,17 @@ object Unzip {
} }
/** /**
* Combine the elements of multiple streams into a stream of the combined elements. * Takes a stream of pair elements and splits each pair to two output streams.
*
* An `Unzip` has one `in` port and one `left` and one `right` output port.
*
* '''Emits when''' all of the outputs stop backpressuring and there is an input element available
*
* '''Backpressures when''' any of the outputs backpressure
*
* '''Completes when''' upstream completes
*
* '''Cancels when''' any downstream cancels
*/ */
final class Unzip[A, B]() extends UnzipWith2[(A, B), A, B](ConstantFun.scalaIdentityFunction) { final class Unzip[A, B]() extends UnzipWith2[(A, B), A, B](ConstantFun.scalaIdentityFunction) {
override def toString = "Unzip" override def toString = "Unzip"
@ -902,9 +912,9 @@ final class Unzip[A, B]() extends UnzipWith2[(A, B), A, B](ConstantFun.scalaIden
/** /**
* Transforms each element of input stream into multiple streams using a splitter function. * Transforms each element of input stream into multiple streams using a splitter function.
* *
* '''Emits when''' all of the outputs stops backpressuring and there is an input element available * '''Emits when''' all of the outputs stop backpressuring and there is an input element available
* *
* '''Backpressures when''' any of the outputs backpressures * '''Backpressures when''' any of the outputs backpressure
* *
* '''Completes when''' upstream completes * '''Completes when''' upstream completes
* *