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

Commit

Permalink
Deprecated Flux and Mono
Browse files Browse the repository at this point in the history
  • Loading branch information
sinwe committed Jun 12, 2019
1 parent 9715e3a commit 9a944ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/scala/reactor/core/scala/publisher/Flux.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ import scala.concurrent.duration.Duration
*
* @tparam T the element type of this Reactive Streams [[Publisher]]
* @see [[Mono]]
* @deprecated Use [[SFlux]]
*/
@deprecated(message = "This class is deprecated. Use SFlux", since = "0.4.0")
class Flux[T] private[publisher](private[publisher] val jFlux: JFlux[T])
extends Publisher[T] with MapablePublisher[T] with OnErrorReturn[T] with FluxLike[T] with Filter [T] with Scannable {

Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/reactor/core/scala/publisher/Mono.scala
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ import scala.util.{Failure, Success, Try}
*
* @tparam T the type of the single value of this class
* @see Flux
* @deprecated Use [[SMono]]
*/
@deprecated(message = "This class is deprecated, use SMono", since = "0.4.0")
class Mono[T] private(private val jMono: JMono[T])
extends Publisher[T] with MapablePublisher[T] with OnErrorReturn[T] with MonoLike[T] with Filter[T] with Scannable {
override def subscribe(s: Subscriber[_ >: T]): Unit = new ReactiveSMono[T](jMono).subscribe(s)
Expand Down

0 comments on commit 9a944ec

Please sign in to comment.