Packages

object Callback extends Serializable

Source
Callback.scala
Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Callback
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit final class Extensions [-A] extends AnyVal

    Useful extension methods for Callback.

Value Members

  1. def async[A](cb: Callback[A])(implicit s: Scheduler): Callback[A]

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

  2. def empty[T](implicit r: UncaughtExceptionReporter): Callback[T]

    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.

  3. def fromPromise[A](p: Promise[A]): Callback[A]

    Returns a Callback instance that will complete the given promise.

  4. def safe[T](cb: Callback[T])(implicit r: UncaughtExceptionReporter): Callback[T]

    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.