Object/Class

monix.execution

Callback

Related Docs: class Callback | package execution

Permalink

object Callback

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Callback
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final class Builders[E] extends AnyVal

    Permalink

    Functions exposed via apply.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply[E]: Builders[E]

    Permalink

    For building Callback objects using the Partially-Applied Type technique.

    For building Callback objects using the Partially-Applied Type technique.

    For example these are Equivalent:

    Callback[Throwable, Throwable].empty[String] <-> Callback.empty[Throwable, String]

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. implicit def contravariantCallback[E]: Contravariant[[β$0$]Callback[E, β$0$]]

    Permalink

    Contravariant type class instance of Callback for Cats.

  8. def empty[E, A](implicit r: UncaughtExceptionReporter): Callback[E, A]

    Permalink

    Creates an empty Callback, a callback that doesn't do anything in onNext and that logs errors in onError with the provided monix.execution.UncaughtExceptionReporter.

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def forked[E, A](cb: Callback[E, A])(implicit ec: ExecutionContext): Callback[E, A]

    Permalink

    Given a Callback wraps it into an implementation that calls onSuccess and onError asynchronously, using the given scala.concurrent.ExecutionContext.

    Given a Callback wraps it into an implementation that calls onSuccess and onError asynchronously, using the given scala.concurrent.ExecutionContext.

    The async boundary created is "light", in the sense that a TrampolinedRunnable is used and supporting schedulers can execute these using an internal trampoline, thus execution being faster and immediate, but still avoiding growing the call-stack and thus avoiding stack overflows.

    See also

    Callback.trampolined

  13. def fromAttempt[E, A](cb: (Either[E, A]) ⇒ Unit): Callback[E, A]

    Permalink

    Turns Either[Throwable, A] => Unit callbacks into Monix callbacks.

    Turns Either[Throwable, A] => Unit callbacks into Monix callbacks.

    These are common within Cats' implementation, used for example in cats.effect.IO.

  14. def fromPromise[A](p: Promise[A]): Callback[Throwable, A]

    Permalink

    Returns a Callback instance that will complete the given promise.

  15. def fromTry[A](cb: (Try[A]) ⇒ Unit): Callback[Throwable, A]

    Permalink

    Turns Try[A] => Unit callbacks into Monix callbacks.

    Turns Try[A] => Unit callbacks into Monix callbacks.

    These are common within Scala's standard library implementation, due to usage with Scala's Future.

  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def safe[E, A](cb: Callback[E, A])(implicit r: UncaughtExceptionReporter): Callback[E, A]

    Permalink

    Wraps any Callback into a safer implementation that protects against grammar violations (e.g.

    Wraps any Callback into a safer implementation that protects against grammar violations (e.g. onSuccess or onError must be called at most once). For usage in runAsync.

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. def trampolined[E, A](cb: Callback[E, A])(implicit ec: ExecutionContext): Callback[E, A]

    Permalink

    Given a Callback wraps it into an implementation that calls onSuccess and onError asynchronously, using the given scala.concurrent.ExecutionContext.

    Given a Callback wraps it into an implementation that calls onSuccess and onError asynchronously, using the given scala.concurrent.ExecutionContext.

    The async boundary created is "light", in the sense that a TrampolinedRunnable is used and supporting schedulers can execute these using an internal trampoline, thus execution being faster and immediate, but still avoiding growing the call-stack and thus avoiding stack overflows.

    See also

    forked

  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped