=str #25091 javadsl ZipWithIndex to return java.lang.Long

This commit is contained in:
Stefano Bonetti 2018-05-14 14:22:35 +01:00 committed by Johan Andrén
parent 7591571372
commit db057df5d9
3 changed files with 6 additions and 6 deletions

View file

@ -1518,8 +1518,8 @@ class SubFlow[In, Out, Mat](delegate: scaladsl.SubFlow[Out, Mat, scaladsl.Flow[I
*
* '''Cancels when''' downstream cancels
*/
def zipWithIndex: SubFlow[In, akka.japi.Pair[Out @uncheckedVariance, Long], Mat] =
new SubFlow(delegate.zipWithIndex.map { case (elem, index) akka.japi.Pair(elem, index) })
def zipWithIndex: SubFlow[In, akka.japi.Pair[Out @uncheckedVariance, java.lang.Long], Mat] =
new SubFlow(delegate.zipWithIndex.map { case (elem, index) akka.japi.Pair[Out, java.lang.Long](elem, index) })
/**
* If the first element has not passed through this stage before the provided timeout, the stream is failed