Packages

sealed trait Task[+A] extends AnyRef

This task was introduced as a compatibilty layer to ublock bloop migration from monix2. there is an important difference between monix2 and monix3 in cancellation mechanic:

  • monix2 - cancel is a signal that triggers doOnCancel callbacks and the whole task anyway completes.
  • monix3 - cancel actually cancel the runLoop of task and turns CancellableFuture into incomletable one.

Bloop is hugely relies on doOnCancel usage and old cancellation mechanic. Actually, most of bsp-methods are kind of function (Input, State) => State. runLoop cancellation doesn't fit for bloop at all. So the idea is: perform cancels as in monix2, do an actual execution on monix3. This approach allows to unblock bsp4s/monix/scala upgrades (monix2 isn't supported and isn't published for scala 2.13). In theory we can switch it on some other effect-library and preserve the codebase without significant rewrites.

Self Type
Task[A]
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Task
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def *>[B](f: => Task[B]): Task[B]
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def as[B](b: => B): Task[B]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. final def asyncBoundary(s: Scheduler): Task[A]
  8. final def asyncBoundary: Task[A]
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  10. def delayExecution(timespan: FiniteDuration): Task[A]
  11. final def dematerialize[B](implicit ev: <:<[A, Try[B]]): Task[B]
  12. final def doOnCancel(f: => Task[Unit]): Task[A]
  13. final def doOnFinish(f: (Option[Throwable]) => Task[Unit]): Task[A]
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. def executeAsync: Task[A]
  17. final def executeOn(s: Scheduler, forceAsync: Boolean = true): Task[A]
  18. def failed: Task[Throwable]
  19. final def flatMap[B](f: (A) => Task[B]): Task[B]
  20. final def flatten[B](implicit ev: <:<[A, Task[B]]): Task[B]
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def map[B](f: (A) => B): Task[B]
  25. final def materialize: Task[Try[A]]
  26. final def memoize: Task[A]
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  30. def onErrorFallbackTo[U >: A](f: Task[U]): Task[U]
  31. def onErrorHandleWith[B >: A](f: (Throwable) => Task[B]): Task[B]
  32. def onErrorRecover[U >: A](pf: PartialFunction[Throwable, U]): Task[U]
  33. def onErrorRestartIf(f: (Throwable) => Boolean): Task[A]
  34. def restartUntil(f: (A) => Boolean): Task[A]
  35. def runAsync(implicit s: Scheduler): CancelableFuture[A]
  36. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  37. def timeout(duration: FiniteDuration): Task[A]
  38. def timeoutTo[B >: A](duration: FiniteDuration, backup: Task[B]): Task[B]
  39. def toMonixTask(implicit sh: Scheduler): monix.eval.Task[A]
  40. def toString(): String
    Definition Classes
    AnyRef → Any
  41. final def transform[R](fa: (A) => R, fe: (Throwable) => R): Task[R]
  42. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  43. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  44. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped