DeprecatedExtensions
Exposes extension methods for deprecated Observable methods.
Value members
Deprecated and Inherited methods
DEPRECATED — renamed to Observable.count in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
DEPRECATED — renamed to Observable.count in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
The F
suffix now represents working with higher-kinded types,
e.g. F[_]
, with restrictions like ObservableLike,
TaskLike, cats.effect.Sync
, etc.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED - renamed to delayExecution.
DEPRECATED - renamed to delayExecution.
The reason for the deprecation is making the name more consistent with Task.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED - renamed to delayExecutionWith.
DEPRECATED - renamed to delayExecutionWith.
The reason for the deprecation is making the name more consistent with delayExecution.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — signature changed to use Task.
DEPRECATED — signature changed to use Task.
Switch to:
Note that via the magic of monix.eval.TaskLike which supports Function0
conversions, you can still use side effectful callbacks in
doAfterSubscribeF, but it isn't
recommended:
import monix.reactive._
Observable.range(0, 10).doAfterSubscribeF { () =>
println("Look ma! Side-effectful callbacks!")
}
The switch to Task
is to encourage referential transparency,
so use it.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — this function has no direct replacement.
DEPRECATED — this function has no direct replacement.
Switching to Observable.guaranteeCase is recommended.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — this function has no direct replacement.
DEPRECATED — this function has no direct replacement.
Switching to Observable.guaranteeCaseF is recommended.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — this function has no direct replacement.
DEPRECATED — this function has no direct replacement.
Switching to Observable.guaranteeCase is recommended.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED - signature changed to usage of Task
. You can switch to:
DEPRECATED - signature changed to usage of Task
. You can switch to:
NOTE that you can still use side effectful functions with
doOnCompleteF
, via the magic of monix.eval.TaskLike, but it's no longer
recommended:
import monix.reactive._
// Needed for the Comonad[Function0] instance
Observable.range(0, 100)
.doOnCompleteF(() => println("Completed!"))
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to doOnCompleteF.
DEPRECATED — renamed to doOnCompleteF.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to doOnComplete.
DEPRECATED — renamed to doOnComplete.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — signature changed, please see:
DEPRECATED — signature changed, please see:
NOTE you can still get the same behavior via doOnEarlyStopF
,
because Function0
implements cats.Comonad
and Task
conversions from Comonad
are allowed, although frankly in
this case doOnEarlyStop
:
import monix.reactive._
// This is possible, but it's better to work with
// pure functions, so use Task or IO ;-)
Observable.range(0, 1000).take(10).doOnEarlyStopF {
// Via the magic of `TaskLike`, we are allowed to use `Function0`
() => println("Stopped!")
}
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to doOnEarlyStopF.
DEPRECATED — renamed to doOnEarlyStopF.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to doOnEarlyStop.
DEPRECATED — renamed to doOnEarlyStop.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to doOnErrorF.
DEPRECATED — renamed to doOnErrorF.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — signature for function changed to use monix.eval.Task.
DEPRECATED — signature for function changed to use monix.eval.Task.
import monix.eval._
import monix.reactive._
Observable.range(0, 100).doOnNext { a =>
Task(println(s"Next: $$a"))
}
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — signature changed to use monix.eval.Task.
DEPRECATED — signature changed to use monix.eval.Task.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.doOnNextAckF.
DEPRECATED — renamed to Observable.doOnNextAckF.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.doOnNextAck.
DEPRECATED — renamed to Observable.doOnNextAck.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.doOnNextF.
DEPRECATED — renamed to Observable.doOnNextF.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.doOnNext.
DEPRECATED — renamed to Observable.doOnNext.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — signature changed to use monix.eval.Task
DEPRECATED — signature changed to use monix.eval.Task
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.doOnStartF
DEPRECATED — renamed to Observable.doOnStartF
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.doOnStart
DEPRECATED — renamed to Observable.doOnStart
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — signature changed to use Task.
DEPRECATED — signature changed to use Task.
Switch to:
Note that via the magic of monix.eval.TaskLike which supports Function0
conversions, you can still use side effectful callbacks in
doOnSubscribeF, but it isn't
recommended:
import monix.reactive._
Observable.range(0, 10).doOnSubscribeF { () =>
println("Look ma! Side-effectful callbacks!")
}
The switch to Task
is to encourage referential transparency,
so use it.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED - you can switch to:
DEPRECATED - you can switch to:
NOTE that you can still use side effectful functions with
doOnSubscriptionCancelF
, via the magic of monix.eval.TaskLike,
but it's no longer recommended:
import monix.reactive._
Observable.range(0, Int.MaxValue)
.doOnEarlyStopF(() => println("Cancelled!"))
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — switch to:
DEPRECATED — switch to:
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — a much better version of doOnTerminateEval
is guaranteeCaseF.
DEPRECATED — a much better version of doOnTerminateEval
is guaranteeCaseF.
Example:
import cats.effect.{ExitCase, IO}
import monix.reactive._
Observable.range(0, 1000).guaranteeCaseF {
case ExitCase.Error(e) =>
IO(println(s"Error raised: $$e"))
case ExitCase.Completed =>
IO(println("Stream completed normally"))
case ExitCase.Canceled =>
IO(println("Stream was cancelled"))
}
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — a much better version of doOnTerminateTask
is guaranteeCase.
DEPRECATED — a much better version of doOnTerminateTask
is guaranteeCase.
Example:
import cats.effect.ExitCase
import monix.eval._
import monix.reactive._
Observable.range(0, 1000).guaranteeCase {
case ExitCase.Error(e) =>
Task(println(s"Error raised: $$e"))
case ExitCase.Completed =>
Task(println("Stream completed normally"))
case ExitCase.Canceled =>
Task(println("Stream was cancelled"))
}
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED - renamed to executeAsync.
DEPRECATED - renamed to executeAsync.
The reason for the deprecation is the repurposing of the word "fork" in Task.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.forall in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
DEPRECATED — renamed to Observable.forall in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
The F
suffix now represents working with higher-kinded types,
e.g. F[_]
, with restrictions like ObservableLike,
TaskLike, cats.effect.Sync
, etc.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.find in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
DEPRECATED — renamed to Observable.find in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
The F
suffix now represents working with higher-kinded types,
e.g. F[_]
, with restrictions like ObservableLike,
TaskLike, cats.effect.Sync
, etc.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.firstOrElse in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
DEPRECATED — renamed to Observable.firstOrElse in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
The F
suffix now represents working with higher-kinded types,
e.g. F[_]
, with restrictions like ObservableLike,
TaskLike, cats.effect.Sync
, etc.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.fold in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
DEPRECATED — renamed to Observable.fold in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
The F
suffix now represents working with higher-kinded types,
e.g. F[_]
, with restrictions like ObservableLike,
TaskLike, cats.effect.Sync
, etc.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.foldLeft in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
DEPRECATED — renamed to Observable.foldLeft in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
The F
suffix now represents working with higher-kinded types,
e.g. F[_]
, with restrictions like ObservableLike,
TaskLike, cats.effect.Sync
, etc.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.foldWhileLeft in an effort
to unify the naming conventions with Iterant
, Scala's standard
library and Cats-Effect.
DEPRECATED — renamed to Observable.foldWhileLeft in an effort
to unify the naming conventions with Iterant
, Scala's standard
library and Cats-Effect.
The F
suffix now represents working with higher-kinded types,
e.g. F[_]
, with restrictions like ObservableLike,
TaskLike, cats.effect.Sync
, etc.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.forall in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
DEPRECATED — renamed to Observable.forall in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
The F
suffix now represents working with higher-kinded types,
e.g. F[_]
, with restrictions like ObservableLike,
TaskLike, cats.effect.Sync
, etc.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.forallL in an effort to unify
the naming conventions with Iterant
and Scala's standard library.
DEPRECATED — renamed to Observable.forallL in an effort to unify
the naming conventions with Iterant
and Scala's standard library.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.head in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
DEPRECATED — renamed to Observable.head in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
The F
suffix now represents working with higher-kinded types,
e.g. F[_]
, with restrictions like ObservableLike,
TaskLike, cats.effect.Sync
, etc.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.headOrElse in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
DEPRECATED — renamed to Observable.headOrElse in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
The F
suffix now represents working with higher-kinded types,
e.g. F[_]
, with restrictions like ObservableLike,
TaskLike, cats.effect.Sync
, etc.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.isEmpty in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
DEPRECATED — renamed to Observable.isEmpty in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
The F
suffix now represents working with higher-kinded types,
e.g. F[_]
, with restrictions like ObservableLike,
TaskLike, cats.effect.Sync
, etc.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.forall in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
DEPRECATED — renamed to Observable.forall in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
The F
suffix now represents working with higher-kinded types,
e.g. F[_]
, with restrictions like ObservableLike,
TaskLike, cats.effect.Sync
, etc.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — switch to Observable.mapEvalF, which
is the generic version that supports usage with Future
via the magic of monix.eval.TaskLike.
DEPRECATED — switch to Observable.mapEvalF, which
is the generic version that supports usage with Future
via the magic of monix.eval.TaskLike.
The replacement is direct, a simple rename:
import scala.concurrent._
import scala.concurrent.duration._
import monix.execution.FutureUtils.extensions._
import monix.reactive._
Observable.range(0, 100).mapEvalF { a =>
import monix.execution.Scheduler.Implicits.global
Future.delayedResult(1.second)(a)
}
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.mapEval.
DEPRECATED — renamed to Observable.mapEval.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.maxBy in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
DEPRECATED — renamed to Observable.maxBy in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
The F
suffix now represents working with higher-kinded types,
e.g. F[_]
, with restrictions like ObservableLike,
TaskLike, cats.effect.Sync
, etc.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.max in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
DEPRECATED — renamed to Observable.max in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
The F
suffix now represents working with higher-kinded types,
e.g. F[_]
, with restrictions like ObservableLike,
TaskLike, cats.effect.Sync
, etc.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.minBy in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
DEPRECATED — renamed to Observable.minBy in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
The F
suffix now represents working with higher-kinded types,
e.g. F[_]
, with restrictions like ObservableLike,
TaskLike, cats.effect.Sync
, etc.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.min in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
DEPRECATED — renamed to Observable.min in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
The F
suffix now represents working with higher-kinded types,
e.g. F[_]
, with restrictions like ObservableLike,
TaskLike, cats.effect.Sync
, etc.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.nonEmpty in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
DEPRECATED — renamed to Observable.nonEmpty in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
The F
suffix now represents working with higher-kinded types,
e.g. F[_]
, with restrictions like ObservableLike,
TaskLike, cats.effect.Sync
, etc.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.scanEval.
DEPRECATED — renamed to Observable.scanEval.
Renaming was done for naming consistency. Functions that use
Task parameters in Observable
no longer
have a Task
suffix.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.scanEval0.
DEPRECATED — renamed to Observable.scanEval0.
Renaming was done for naming consistency. Functions that use
Task parameters in Observable
no longer
have a Task
suffix.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods
DEPRECATED — renamed to Observable.sum in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
DEPRECATED — renamed to Observable.sum in an effort to unify
the naming conventions with Iterant
, Scala's standard library
and Cats-Effect.
The F
suffix now represents working with higher-kinded types,
e.g. F[_]
, with restrictions like ObservableLike,
TaskLike, cats.effect.Sync
, etc.
- Deprecated
- Inherited from:
- ObservableDeprecatedMethods