chore: Fix the @since of Sink.none operator, should be 1.2.0 (#1632)
This commit is contained in:
parent
aea4e836e9
commit
5334ea40f6
2 changed files with 2 additions and 2 deletions
|
|
@ -118,7 +118,7 @@ object Sink {
|
|||
*
|
||||
* '''Cancels when''' predicate `p` returns `true`
|
||||
*
|
||||
* @since 1.1.3
|
||||
* @since 1.2.0
|
||||
*/
|
||||
def none[In](p: function.Predicate[In]): javadsl.Sink[In, CompletionStage[java.lang.Boolean]] = {
|
||||
import pekko.util.FutureConverters._
|
||||
|
|
|
|||
|
|
@ -487,7 +487,7 @@ object Sink {
|
|||
*
|
||||
* '''Cancels when''' predicate `p` returns `true`
|
||||
*
|
||||
* @since 1.1.3
|
||||
* @since 1.2.0
|
||||
*/
|
||||
def none[T](p: T => Boolean): Sink[T, Future[Boolean]] =
|
||||
Flow[T].foldWhile(true)(util.ConstantFun.scalaIdentityFunction)(_ && !p(_))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue