chore: Fix the @since of Sink.none operator, should be 1.2.0 (#1632)

This commit is contained in:
He-Pin(kerr) 2024-12-28 21:07:03 +08:00 committed by GitHub
parent aea4e836e9
commit 5334ea40f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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._

View file

@ -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(_))