Skip to content
This repository was archived by the owner on Mar 2, 2022. It is now read-only.

Commit 9a944ec

Browse files
committed
Deprecated Flux and Mono
1 parent 9715e3a commit 9a944ec

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/main/scala/reactor/core/scala/publisher/Flux.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ import scala.concurrent.duration.Duration
4242
*
4343
* @tparam T the element type of this Reactive Streams [[Publisher]]
4444
* @see [[Mono]]
45+
* @deprecated Use [[SFlux]]
4546
*/
47+
@deprecated(message = "This class is deprecated. Use SFlux", since = "0.4.0")
4648
class Flux[T] private[publisher](private[publisher] val jFlux: JFlux[T])
4749
extends Publisher[T] with MapablePublisher[T] with OnErrorReturn[T] with FluxLike[T] with Filter [T] with Scannable {
4850

src/main/scala/reactor/core/scala/publisher/Mono.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ import scala.util.{Failure, Success, Try}
6161
*
6262
* @tparam T the type of the single value of this class
6363
* @see Flux
64+
* @deprecated Use [[SMono]]
6465
*/
66+
@deprecated(message = "This class is deprecated, use SMono", since = "0.4.0")
6567
class Mono[T] private(private val jMono: JMono[T])
6668
extends Publisher[T] with MapablePublisher[T] with OnErrorReturn[T] with MonoLike[T] with Filter[T] with Scannable {
6769
override def subscribe(s: Subscriber[_ >: T]): Unit = new ReactiveSMono[T](jMono).subscribe(s)

0 commit comments

Comments
 (0)